web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
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
    766 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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Nagaraju_Matta Profile Picture

Nagaraju_Matta 123

#2
Hamza H Profile Picture

Hamza H 96 Super User 2026 Season 1

#3
Abhilash Warrier Profile Picture

Abhilash Warrier 66 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans