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,...
Suggested Answer

xrm.webapi.retrieveMultipleRecords fetchxml results symbols

(0) ShareShare
ReportReport
Posted on by

I apologize for asking about debugging but, I can't figure out or find documentation for the symbols in the result.  How do I read/use the link-entity attributes?  This works fine down to the red line.  Then I'm lost:fetchSymbolitry.PNG I've tried dereferencing sub, product, substituteproduct.  A little help please.

dupeRelatedProducts.PNG

  • mvilas02 Profile Picture
    356 on at

    Hi ,

    you can try this syntax

    ((AliasedValue)entity.Attributes[“msdyn_itemnumber”]).Value

    Regards,

    Vilas

  • Community Member Profile Picture
    on at

    I'm in javascript not .NET

  • Community Member Profile Picture
    on at

    I have a theory why none of these things work and there are no examples.  Microsoft never implemented them into Xrm.Webapi.  No link-entity/aliased values delivered.

  • Suggested answer
    Bipin D365 Profile Picture
    28,995 Moderator on at

    Hi,

    Can you please try below code to get linked entity attribute value

    var response=result.entities[0];

    var companyid=response.sub.msdyn_companyid;

    same code for itemnumber.

    Please mark my answer verified if this is helpful!

    Regards,

    Bipin Kumar

    Follow my Blog: xrmdynamicscrm.wordpress.com/

  • Suggested answer
    Pradeep Rai Profile Picture
    5,489 Moderator on at

    HI, 

    You need to use below syntax:
    result.entities[index]['aliasname.fieldlogicalname']

    Example.

    pastedimage1640109298046v1.png

    Thanks.

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 Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
11manish Profile Picture

11manish 109 Super User 2026 Season 2

#2
Syed Aqib Raza Profile Picture

Syed Aqib Raza 88

#3
ParthPatel249 Profile Picture

ParthPatel249 84

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans