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

Notifications

Announcements

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 57 Super User 2025 Season 2

#2
Satyam Prakash Profile Picture

Satyam Prakash 24

#2
Eugen Podkorytov Profile Picture

Eugen Podkorytov 24

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans