Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

what is Linked entity

(0) ShareShare
ReportReport
Posted on by 70

HI All,

can any one please explain me about linked entity 

what is linked entity when we will use linked entity ?

*This post is locked for comments

  • Suggested answer
    gdas Profile Picture
    50,089 Moderator on at
    RE: what is Linked entity

    When you create any relationship the reference/related entity called linked entity. In Dynamics CRM using  SDK you can retrieve data from related or linked entity . Its nothing but the way of retrieving related data using fetchXML or query expression.

    Using Query Expression here you can see how to use link entity  -

    rajeevpentyala.com/.../

    Using FetchXML here you can refer how to use link entity  , I would prefer you to create fetch XML using advanced find -

    msdynamicscrmblog.wordpress.com/.../

    www.youtube.com/watch

  • Suggested answer
    gdas Profile Picture
    50,089 Moderator on at
    RE: what is Linked entity

    When you create any relationship the reference/related entity called linked entity. In Dynamics CRM using  SDK you can retrieve data from related or linked entity . Its nothing but the way of retrieving related data using fetchXML or query expression.

    Using Query Expression here you can see how to use link entity  -

    rajeevpentyala.com/.../

    Using FetchXML here you can refer how to use link entity  , I would prefer you to create fetch XML using advanced find -

    msdynamicscrmblog.wordpress.com/.../

    www.youtube.com/watch

  • Suggested answer
    Kalpavruksh D365 CoE Profile Picture
    2,545 on at
    RE: what is Linked entity

    Hi,

    Linked entity is basically a relationship between entities. 

    Example relationship of Account & Contact:

    CRM has out of box (1:N )relationship between Account & Contact.

    Contact has ‘ParentCustomerId’ field as foreignkey of ‘Account’ entity.
    ‘Account’ entity’s primary field is ‘AccountId’.
    Contact Account will show related contacts in sub-grid and Contact will show account lookup field. 
  • RaviKashyap Profile Picture
    55,410 Moderator on at
    RE: what is Linked entity

    Hi,

    When you want to retrive data from more than one entity (which are related) you need to use linkedentity :)

  • Suggested answer
    Pawar Pravin  Profile Picture
    5,231 on at
    RE: what is Linked entity

    Hi There,

    It is as equal as relationship of records to each other. When link entity comes into the picture I must say its kind of joins. When you create relationship in two entities as 1-N, N-1 or N-N it means they are connected to each other and linked entity is nothing but connected link or in other word I can say foreign key.

    It help us to retrieve related data using either sql query or fetchxml query.

    In case of retrieve data in related records we can use link entity.

    If you see in below snapshot, 'primarycontactid' is linked entity which allows me to join contact with account.

    pastedimage1563185285830v3.png

    Please refer below url's for your reference:

    [View:https://bernado-nguyen-hoan.com/2014/04/19/retrieving-related-records-in-an-nn-relationship-using-queryexpression/:750:50]

    [View:https://docs.microsoft.com/en-us/dynamics365/customer-engagement/customize/create-and-edit-1n-relationships:750:50]

  • Suggested answer
    Johnny Gong Profile Picture
    6,482 Moderator on at
    RE: what is Linked entity

    Hi Screen64,

    Both the XRM ToolBox and Advanced Find allow you to create link entities. You could refer to above Wouter's suggestion on linking entity by FetchXml. I could provide some articles as examples for help understanding:

    community.dynamics.com/.../know-how-or-condition-between-linked-entities-or-multiple-entites-in-mscrm-fetchxml

    www.itaintboring.com/.../

    community.dynamics.com/.../fetch-xml-link-entity-attribute-value

    Hope above could help.

    Regards

    Johnny

  • Suggested answer
    Wouter Madou Profile Picture
    3,392 on at
    RE: what is Linked entity

    This sounds like fetchxml?

    The linkedentity parameter is used to add a relationship in your query so you can have additional parameters to filter in.

    A good explanation can be found here:

    technologyblog.rsmus.com/.../

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,202 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,923 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans