web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / Retrieve a value from ...
Power Pages
Answered

Retrieve a value from the related entities using Liquid Templates

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

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. 

Categories:
I have the same question (0)
  • CU27040901-4 Profile Picture
    6 on at

    TonyBet Casino is a fantastic online entertainment platform designed specifically for Canadian players. The site offers a smooth, modern interface with fast loading times and excellent mobile compatibility. Users can enjoy a wide variety of games and sports content all in one place. The platform feels secure, professional, and easy to navigate. With quick transactions and responsive support, TonyBet.ca delivers a high-quality experience tailored to the Canadian audience. Highly recommended for anyone looking for premium online fun.

     
     
     
  • Verified answer
    Fubar Profile Picture
    8,512 Super User 2026 Season 1 on at
    You may find that what you are actually querying is the Intersect entity (table in the middle of the N:N) if so the only values are the GUIDs of both records so probably has fields for contactid and areaofinterestid (not sure what the prefix may be). as per the earlier post try filtering the object to JSON to see what is there. Suspect you will need to use the liquid fetchxml to get the values you are after
     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Pages

#1
11manish Profile Picture

11manish 38

#2
Valantis Profile Picture

Valantis 36

#3
omkarsupreme Profile Picture

omkarsupreme 24

Last 30 days Overall leaderboard