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 :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested Answer

How do i retrieve the record attributes from the lookup field.

(0) ShareShare
ReportReport
Posted on by 20

I want to check if the record selected in the lookup is an active record or inactive record. 

I am able to retrieve the ID of that record but not able to get the fields available on that record. 

please help me with the query.

I have the same question (0)
  • Guido Preite Profile Picture
    54,086 Moderator on at

    don't create a new thread on the same topic.

    You need to retrieve the record using Xrm.WebApi (or another method to query the Web API endpoint) in order to retrieve the statuscode field.

    The other thread contains some code you can start with.

  • Suggested answer
    Leah Ju Profile Picture
    Microsoft Employee on at

    Hi Manth,

    You can retrieve the record to get status field through the ID.

    The Dataverse REST Builder tool can help you build code easily:

    https://github.com/GuidoPreite/DRB 

    https://www.theblueflamelabs.com/lets-utilize-dataverse-rest-builder-to-create-a-web-api-for-dynamics-365-ce/ 

    pastedimage1671873676963v1.png

    pastedimage1671873772809v2.png

    You can copy these code, then use dynamic value to replace static id value in your js code.

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 365 | Integration, Dataverse, and general topics

#1
Martin Dráb Profile Picture

Martin Dráb 47 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 38 Super User 2025 Season 2

#3
Pallavi Phade Profile Picture

Pallavi Phade 32

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans