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 :
Customer experience | Sales, Customer Insights,...
Suggested Answer

Dynamics 365 CE APIs and Azure API Management

(0) ShareShare
ReportReport
Posted on by 175

Hi,

I'm just getting started with Azure API management and our D365 CE instance.  I have APIM up and running and returning all our contacts.

I've having trouble finding information on how to return single records (constructing query strings/filters) with APIM.  I have an alternate key that I'd like to pass to the API request and have the contact record returned for that contact...

Would someone be able to point me in the right direction?

thanks,

Steve.

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

    To configure Azure API Management with Dynamics 365 CE you can follow this guide (probably you already found this link)

    https://nishantrana.me/2021/01/19/manage-dynamics-365-web-api-with-azure-api-management/

    to generate the API requests (including a retrieve by alternate key) you can use my tool Dataverse REST Builder and after you can copy the generated url

  • Inogic Profile Picture
    682 on at

    Hi Steve,

     

    If you have alternate keys defined in the CRM then you can use that alternate keys to retrieve the record instead of using unique identifier for the record(GUID of the record).

    Syntax:

    GET [Organization URI]/api/data/v9.2/contacts(firstname=”Steve”)

     

    You can also refer below link for your reference

    https://docs.microsoft.com/en-us/power-apps/developer/data-platform/webapi/retrieve-entity-using-web-api#retrieve-using-an-alternate-key

     

    Hope this helps.

     

    Thanks!

  • Marx2020 Profile Picture
    175 on at

    Thanks Sam and Guido for your responses.  I think my issue is with APIM and getting the query into the right form.  I've got to submitting the query string, but the identifier like: /contacts?my_alternate_key=alternate_key_value  rather than /contacts(my_alternate_key = alternate_key_value).  Clearly I don't under APIM policies etc very well.  As I said, just getting started.....:)

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 > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 170 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 70

#3
Jimmy Passeti Profile Picture

Jimmy Passeti 50 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans