Lava Example - 66
Prompt
Like the schools in our session, Connection Statuses are also defined values.
They're stored in the Defined Type with an id of 4 (and remember that DefinedType.DefinedValues is a property containing all the DefinedValue objects 😅)
List out all of the connection statuses our church can assign person records!
Initial Code
Solution Lava
{% assign connectionStatuses = 4 | FromCache:'DefinedType' %}
{% assign statuses = connectionStatuses.DefinedValues %}
{{ statuses | Map:'Value' | Join:', ' | ReplaceLast:',',', and' }}