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 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.
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
You can copy these code, then use dynamic value to replace static id value in your js code.
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.
André Arnaud de Cal...
293,006
Super User 2025 Season 1
Martin Dráb
231,837
Most Valuable Professional
nmaenpaa
101,156
Moderator