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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Answered

Portal Entity List - Get linked entity value via custom javascript

(0) ShareShare
ReportReport
Posted on by 55

Hi all,

I have an entity list that will display something like the below:

pastedimage1570800574920v1.png

This is from a CRM view and as you can see the Qualification Aim code is a linked entity. Within the custom JavaScript for this entity list im trying to iterate through the rows and get this qualification aim value.

So a simplified version of the code would be as below. This shows me getting the title field which works fine but using the attribute name for the Qualification aim doesn't work.

pastedimage1570800893055v2.png

Any ideas on how I get this or how I can drill down to child entities JavaScript or liquid?

many thanks.

I have the same question (0)
  • Verified answer
    RaviKashyap Profile Picture
    55,410 Moderator on at

    Hi,

    The easiest way is to use developer console and find the data-attribute value within the rendered lis.

    Hope this helps

  • terryharrison Profile Picture
    55 on at

    Thanks Ravi,

    Im trying to find the data attribute names in dev console. Im querying $(this) in the console but cant find where they are stored. debugging the jquery shows what I think it should be as undefined.

    pastedimage1571046657479v1.png

    can you advise where I find the actual data attribute names are that the view is using?

    Thanks

  • Suggested answer
    oliver.rodrigues Profile Picture
    4,052 on at

    I have a similar requirement but it is to get the GUID of the linked entity

    not sure the same code work for Option Set, but give it a try, I am storing the object as a json and than getting the ID:

    var JSONObject = JSON.parse(list.find('[data-attribute="uow_title"]').attr("data-value"));

    var value = JSONObject.Id;

  • Verified answer
    terryharrison Profile Picture
    55 on at

    Thanks, I've worked this out now. The field name for related entity was prefixed with aa. so I had to use aa.uow_qualificationaimcode.

  • RaviKashyap Profile Picture
    55,410 Moderator on at

    Thanks for sharing the fix here. This will surely help others facing the same issue.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
ManoVerse Profile Picture

ManoVerse 184 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 125

#3
CU11031447-0 Profile Picture

CU11031447-0 100

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans