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

Announcements

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

    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

    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

    Hi Jyitsna,

    FetchXML Builder have lot of personal options.

    Try checking Friendly Names or Press Cntrl + F

    pastedimage1567061348179v1.png

  • Inogic Profile Picture
    743 on at

    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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Varsha deshpande Profile Picture

Varsha deshpande 5

#2
Ciprian  P Profile Picture

Ciprian P 2

#3
ZS-27011425-0 Profile Picture

ZS-27011425-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans