web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

what is Linked entity

(0) ShareShare
ReportReport
Posted on by 94

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

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

  • 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
    Pawar Pravin  Profile Picture
    5,237 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]

  • 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
    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. 
  • Suggested answer
    gdas Profile Picture
    50,091 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,091 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

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
HR-09070029-0 Profile Picture

HR-09070029-0 2

#2
ED-30091530-0 Profile Picture

ED-30091530-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans