
Announcements
I am building a portal that ties into a dynamics 365 system with the higher education accelerator installed. In that system contacts have a many-to-many relationship with areas of interest. I assigned my account 3 areas of interest. In the portal, I want to use liquid templates to retrieve the names of those 3 entities. (I picked some random ones: Aircraft, Casino Gambling, and Hockey)
These are the pertinent lines of code:
{% for interest in user.mshied_contact_areaofinterest %}
<div>AOI: {{ interest.mshied_name }}</div>
{% endfor %}
<div>Areas of Interest: {{ user.mshied_contact_areaofinterest | size }} </div>The output is:
AOI:
AOI:
AOI:
Areas of Interest: 3
What am I missing to get values from the array of areas of interest? I got the .mshied_name from customization in advanced settings, I tried several other fields in the area of interest entity, but still got blanks. Other tests like checking if AOI existed seemed to indicate it was null. If so, then what is it counting? Thank you for your time and any help anyone might offer.