cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
NoahPJohnson
Level: Powered On

Retrieve a value from the related entities using Liquid Templates

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. 

Helpful resources

Announcements
New Ranks and Rank Icons in April

'New Ranks and Rank Icons in April

Read the announcement for more information!

Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Users online (9,329)