Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Answered

Get API version supported by MS CRM account using rest call

Posted on by 45

How to get which API version will be supported for rest calls to CRM account? I checked that RetrieveVersion() returns server version let say 9.1.0.16541,  but does this mean we can send further get and post calls to CRM account with v9.1 API version:

For example:

https://<MS CRM url>/api/data/v9.1

here v9.1 is supported by my account but in general how to get this API_VERSION using get call from account? 

  • LeoAlt Profile Picture
    LeoAlt 16,329 on at
    RE: Get API version supported by MS CRM account using rest call

    Hi partner,

    If my answer helped you, please mark my answer as verified so that we could help other users with similar issues.

    pastedimage1589190618259v1.png

    Regards,

    Leo

  • User KS Profile Picture
    User KS 45 on at
    RE: Get API version supported by MS CRM account using rest call

    Okay got it, thanks for confirmation.

  • Verified answer
    LeoAlt Profile Picture
    LeoAlt 16,329 on at
    RE: Get API version supported by MS CRM account using rest call

    Hi partner,

    Yes, and if you want to splice it directly in your code, you need to get the one decimal place as format "9.X", here "X" could be 0 or 1, it is based on your version.

    Regards,

    Leo

  • User KS Profile Picture
    User KS 45 on at
    RE: Get API version supported by MS CRM account using rest call

    this vesion is server version right? If I call retrieveVersion() the value returned is basically this ?

  • LeoAlt Profile Picture
    LeoAlt 16,329 on at
    RE: Get API version supported by MS CRM account using rest call

    Hi partner,

    Thanks for your reply, so since you could get the instance version by "GET {ServiceUrl}/api/v1.2/Instances/{id}", and if the version is 9.0xxxxx, then you need to use 9.0, if the version is 9.1xxxx, so you need to use 9.1.

    Regards,

    Leo

  • User KS Profile Picture
    User KS 45 on at
    RE: Get API version supported by MS CRM account using rest call

    actually I am asking for something which might help me get this version through a rest get call instead of going to my account and checking

  • LeoAlt Profile Picture
    LeoAlt 16,329 on at
    RE: Get API version supported by MS CRM account using rest call

    Hi partner,

    Yes, since your D365 version is 9.1, you need to use 9.1 API version.

    And you could also get the version in Settings->Customizations->Developer Resource

    pastedimage1588924458098v1.png

    Regards,

    Leo

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans