Skip to main content

Notifications

Announcements

No record found.

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

RETRIEVING LOOKUP FIELD FROM DYNAMICS 365 TO WEB API

Posted on by

pastedimage1590469277439v3.pngpastedimage1590469304475v4.pngpastedimage1590469322477v5.png

In dynamics, both Actor(Practitioner) and currency are lookup fields in Appointment (EMR) entity... So I am retrieving currency field in Postman API but I am not able to retrieve Actor(Practitioner data) .. but why some lookup fields are not retrieving to WEB API.
Thanks in Advance.
  • Suggested answer
    SamiraM Profile Picture
    SamiraM 571 on at
    RE: RETRIEVING LOOKUP FIELD FROM DYNAMICS 365 TO WEB API

    Hi,

    try like below

    $select=_msemr_actorpractitioner_value

    Regards

    Samira

  • Suggested answer
    Emily Zhang Profile Picture
    Emily Zhang on at
    RE: RETRIEVING LOOKUP FIELD FROM DYNAMICS 365 TO WEB API

    Same issue as https://community.dynamics.com/crm/f/microsoft-dynamics-crm-forum/382917/expanding-odata-using-expand-query-on-a-lookup-field-custom-is-not-working-for-the-custom-entity

    Can you please try suggestion in this blog? Also, based on document, lookup field cannot be retrieved using $select. Please try build query ref this document: 

    https://docs.microsoft.com/en-us/powerapps/developer/common-data-service/webapi/query-data-web-api#bkmk_lookupProperty

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans