Skip to main content

Notifications

Announcements

No record found.

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

  • Suggested answer
    Pradeep Rai Profile Picture
    5,489 Super User 2025 Season 1 on at
    RE: xrm.webapi.retrieveMultipleRecords fetchxml results symbols

    HI, 

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

    Example.

    pastedimage1640109298046v1.png

    Thanks.

  • Suggested answer
    Bipin D365 Profile Picture
    28,981 Moderator on at
    RE: xrm.webapi.retrieveMultipleRecords fetchxml results symbols

    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/

  • Community Member Profile Picture
    on at
    RE: xrm.webapi.retrieveMultipleRecords fetchxml results symbols

    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.

  • Community Member Profile Picture
    on at
    RE: xrm.webapi.retrieveMultipleRecords fetchxml results symbols

    I'm in javascript not .NET

  • mvilas02 Profile Picture
    356 on at
    RE: xrm.webapi.retrieveMultipleRecords fetchxml results symbols

    Hi ,

    you can try this syntax

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

    Regards,

    Vilas

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

Ramesh Kumar – Community Spotlight

We are honored to recognize Ramesh Kumar as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Holly Huffman Profile Picture

Holly Huffman 103

#2
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 96 Most Valuable Professional

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 51 Most Valuable Professional

Product updates

Dynamics 365 release plans