Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

CRM web api Question

Posted on by 2,665

Hi experts,

I am looking for some answers regarding web api. I've read all the information about it but I need some confirmation.

We recently upgraded to CRM 2016 from 2015. I have a script running fine until we upgraded. It gets triggered on form onload event.

The script seem to be working fine when I open a new entity record from its entity view(+ button on entity view). But when I click on +New from form itself, the script would throw an error. Then I did debug and found that the response I recieved from the httprequest is giving me bad request error. Then it triggered me that the odata query is wrong. But it was working fine until we upgraded to 2016. Now, from the articles I read, the script will still run fine if we were to use oData v2 query style. Should I change all my scripts to reflect the new endpoint url? I did try using this endpoint url:  api/data/v8.0

seems it didnt change anything.

Thanks for any suggestions and help.

*This post is locked for comments

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: CRM web api Question

    Hi,

    I assume you are on premise the big change between crm2015 and crm2016 is the new turboform.

    community.dynamics.com/.../turbo-forms-the-time-is-nigh

    www.magnetismsolutions.com/.../how-to-figure-out-if-turbo-forms-are-enabled-in-dynamics-crm

    As you are using CRM2016, there is still a possibility to deactivate it until you find a solution, i.e. in Dynamics 365 you don't have this option anymore.

    Happy coding

  • ashlega Profile Picture
    ashlega 34,475 on at
    RE: CRM web api Question

    Hi,

      without seeing the script etc, all I can say is that both SOAP and OData endpoints are deprecated:

    https://msdn.microsoft.com/en-us/library/gg309589.aspx#bkmk_OrgDataSvcDeprecated

      so we are all supposed to start using Web API instead. However, it does not mean those older endpoints are gone.. So I'm not sure why and what's not working in your case. 

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans