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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested Answer

Get lookupfield guid related record field value in c# in crm 365 online

(0) ShareShare
ReportReport
Posted on by 2,667

Hi All,

I need to get lookup field value suppose it is lookup to user entity on Lead entity & this user is used as a lookup field in other entity suppose called User Extension entity.

So On lead entity user lookup field is avilable & this user record is added to User extension entity record as lookup field & here in User extension need to get the field called Is User avilable which is two optionset value.

Anyone please provide the C# syntax to get this related record's field value ?

Thanks,

Jharana

I have the same question (0)
  • Suggested answer
    Bipin D365 Profile Picture
    28,983 Moderator on at

    Hi,

    Is User available field is available on which entity?

    You can use fetchXml in c# code to get the value.

    You can construct your fetchXml query with Advanced find and also download fetchXml.

  • Jharana Baliyar Singh Profile Picture
    2,667 on at

    Thanks Bipin for ur response.

    Is User available field is available on User extension entity.

  • Suggested answer
    Bipin D365 Profile Picture
    28,983 Moderator on at

    Hi,

    In your Lead plugin you will first get the User lookup and based on the user lookup value , you will query User Extension Entity where User lookup is eq Lead User lookup

    Once you have Entity collection using service.retrievemultiple

    You may get multiple records with matching User lookup, you need to decide which record you wanna pick

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 > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 137 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 57

#3
Jimmy Passeti Profile Picture

Jimmy Passeti 50 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans