Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Retrieve related entity's attribute values

(0) ShareShare
ReportReport
Posted on by 130

Hi, 

On account entity form, I'm having one Custom entity (Entity X ) lookup. 

I need to list out the account attributes along with the related entity attributes. 

So, While retrieving through FetchXML,  I'm getting X entity's attribute values as 

Microsoft.Xrm.Sdk.AliasedValue, 

Microsoft.Xrm.Sdk.EntityReference, 

Microsoft.Xrm.Sdk.OptionSetValue

854a77a1_2D00_647c_2D00_41a9_2D00_a100_2D00_3f1db6973dc1.jpg

How to retrieve the values for these related entity attributes ?

*This post is locked for comments

  • Verified answer
    a33ik Profile Picture
    a33ik 84,325 Most Valuable Professional on at
    RE: Retrieve related entity's attribute values

    Hello,

    You should aware only of AliasedValue typed fields - community.dynamics.com/.../beware-the-aliasedvalue-attribute-dynamics-crm

    EntityReference and OptionSetValue are usual values.

    EntityReference contains type and id of related entity (LogicalName and Id properties).

    OptionSetValue contains int value of selected option (Value property).

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,711 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,458 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans