Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Suggested answer

how can we retrieve lookup field without using expand in java script

Posted on by
I need retrieve values of one lookup field using another lookup field without using expand keyword.
  • Suggested answer
    Leah Ju Profile Picture
    Leah Ju Microsoft Employee on at
    how can we retrieve lookup field without using expand in java script
    Hi Partner,
    Your retrieval of the 'lookup' field is a query on the entity record.
    Lookup field:  A field that allows setting a reference to a single record of a specific type of entity.
    You want to retrieve one lookup based on another lookup, which means you need retrieve current entity and related entity.
    If so, an Expand query is the fastest and easiest way to retrieve the related entity record columns through WebApi.
    If you insist, try the following two ways:
    1.You can query the current entity and then retrieve related entities based on the current entity's guid.
    2.Using Fetch XML With WebAPI Using JavaScript
    https://carldesouza.com/running-fetchxml-using-xrm-webapi-in-dynamics-365/
    I hope you can mark my answer verified if it is helpful! If you have any questions, please feel free to contact me.
    Regards,
    Leah

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,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans