Announcements
No record found.
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: I've tried dereferencing sub, product, substituteproduct. A little help please.
Hi ,
you can try this syntax
((AliasedValue)entity.Attributes[“msdyn_itemnumber”]).Value
Regards,
Vilas
I'm in javascript not .NET
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.
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!
Bipin Kumar
Follow my Blog: xrmdynamicscrm.wordpress.com/
HI, You need to use below syntax:result.entities[index]['aliasname.fieldlogicalname']Example.
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.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
11manish 109 Super User 2026 Season 2
Syed Aqib Raza 88
ParthPatel249 84