Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

what is Linked entity

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
    gdas 50,085 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
    gdas 50,085 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
    Kalpavruksh D365 CoE 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
    RaviKashyap 55,410 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
    Pawar Pravin 5,227 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
    Johnny Gong 6,482 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
    Wouter Madou 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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans