web
You’re offline. This is a read only version of the page.
close
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

I have the same question (0)
  • 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,983 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

Responsible AI policies

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

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 70 Super User 2025 Season 2

#2
Gerardo Rentería García Profile Picture

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

#3
Daniyal Khaleel Profile Picture

Daniyal Khaleel 32 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans