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)

Need to Fetch record name from the Lookup field in fetch xml builder under Xrm tool box

(0) ShareShare
ReportReport
Posted on by 144

Hi All,

I am facing an isse while getting the record name from the lookup filed.

Currently i am writing a query in Fetch xml builder where i need a data from related Entity.

there is two entity Employe and Customer present in the system. Customer is a lookup field under Employee Entity.

whenever i try to write the query for getting data from Employee Entity it will return Customer Guid insted of name, for query creation i have used  fetch xml builder.

i know in C# its possible to get id and name from the lookup field. but i need to use this query on another Third party tool.

Can some one help me on this.

Regards,

Jyotsna

*This post is locked for comments

I have the same question (0)
  • rthompson Profile Picture
    1,532 on at
    RE: Need to Fetch record name from the Lookup field in fetch xml builder under Xrm tool box

    Hi

    I hope you do not mind posting some of the code that you are using.  That would be very helpful to help you with your issue.

  • Suggested answer
    Vipin J Profile Picture
    1,603 on at
    RE: Need to Fetch record name from the Lookup field in fetch xml builder under Xrm tool box

    Check out this generic method to get details from a related entity.

    [View:http://vjcity.blogspot.com/2018/11/fetch-marketing-list-of-campaign-with-c.html:750:50]

  • Suggested answer
    NODAL Profile Picture
    860 on at
    RE: Need to Fetch record name from the Lookup field in fetch xml builder under Xrm tool box

    Hi Jyitsna,

    FetchXML Builder have lot of personal options.

    Try checking Friendly Names or Press Cntrl + F

    pastedimage1567061348179v1.png

  • Inogic Profile Picture
    682 on at
    RE: Need to Fetch record name from the Lookup field in fetch xml builder under Xrm tool box

    To retrieve the name from the lookup field, you need to add the link entity and then select the attribute (name) from that link entity.

     

    Please refer the below screenshot –

    fetch-xml.jpg

    Hope this helps. 

     

    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.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Wayne Walton Profile Picture

Wayne Walton 2

#2
Good.Panos Profile Picture

Good.Panos 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans