Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Answered

Dynamics 365 Web Api Integration returning only guids' not friendly names

(0) ShareShare
ReportReport
Posted on by 228

I'm trying to Integrate Dynamics 365 from another application and have registered the CRM on Azure app registry got the Client ID & secret and managed to call the CRM Web Api end point successfully. However its' returning the GUID's of the lookup fields but not the formatted values. I'm actually looking for the formatted values / friendly names of the lookup fields.

[{
"@odata.etag": "W/\"2805721\"",
"address2_addresstypecode": 1,
"merged": false,
"statecode": 0,
"exchangerate": 1.0000000000,
"name": "test_5e09f2e6-1b93-48c9-a795-d8e387ef56b5",
"opendeals": 0,
"modifiedon": "2020-07-17T20:55:51Z",
"_owninguser_value": "63d36f17-80c4-448e-a3cf-1406cb722aca",
"openrevenue_state": 1,
"accountratingcode": 1,
"marketingonly": false,
"donotphone": false,
"preferredcontactmethodcode": 1,
"_ownerid_value": "63d36f17-80c4-448e-a3cf-1406cb722aca",
"customersizecode": 1,
"openrevenue_date": "2020-07-19T21:11:45Z",
"openrevenue_base": 0.0000000000,
"businesstypecode": 1,
"donotemail": false,
"address2_shippingmethodcode": 1,
"address1_addressid": "f31956ee-e8f7-4769-bd01-0ff34e66b9b4",
"address2_freighttermscode": 1,
"statuscode": 1,
"createdon": "2020-07-17T20:55:51Z",
"msdyn_travelchargetype": 690970003,
"opendeals_state": 1,
"versionnumber": 2805721,
"donotpostalmail": false,
"openrevenue": 0.0000000000,
"donotsendmm": false,
"donotfax": false,
"donotbulkpostalmail": false,
"creditonhold": false,
"_transactioncurrencyid_value": "b574b624-5fc8-ea11-a812-002248006c8d",
"accountid": "93c71621-bd9f-e711-8122-000d3a2ba2ea",
"donotbulkemail": false,
"_modifiedby_value": "63d36f17-80c4-448e-a3cf-1406cb722aca",
"followemail": true,
"shippingmethodcode": 1,
"_createdby_value": "63d36f17-80c4-448e-a3cf-1406cb722aca",
"territorycode": 1,
"msdyn_taxexempt": false,
"participatesinworkflow": false,
"accountclassificationcode": 1,
"_owningbusinessunit_value": "13822185-4cc8-ea11-a812-002248006c8d",
"address2_addressid": "921bf6ca-e8ac-4b72-a61a-6e65a683c3e1",
"opendeals_date": "2020-07-19T21:11:45Z",}, ....]

  • Verified answer
    Gilmeyer Profile Picture
    Gilmeyer on at
    RE: Dynamics 365 Web Api Integration returning only guids' not friendly names

    That seems to resolved your issue, correct?

    For more details, refer to docs.microsoft.com/.../query-data-web-api

  • Suggested answer
    Raghu_b Profile Picture
    Raghu_b 228 on at
    RE: Dynamics 365 Web Api Integration returning only guids' not friendly names

    Include a header in the Request --- "Prefer" : "odata.include-annotations=OData.Community.Display.V1.FormattedValue"

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,711 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,458 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans