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

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Access Microsoft Dynamics CRM 2016 REST WEB API

(0) ShareShare
ReportReport
Posted on by

I need to access CRM odata REST API for Integration. I have a php cron job for syncing data from CRM. When I hit the endpoint of CRM WEB API https://internal.crm.org.com:5443/appname/api/data/v8.0/ from browser I redirect to the following link :https://adfs.crm.org.com/adfs/ls/?wa=wsignin1.0&wtrealm=https://internal.crm.org.com:5443/&wctx=rm=1&id=4d65271b-682e-44bb-80ce-ed44b5370ed7&ru=%2forgTechnicalTraining%2fdefault.aspx&wct=2016-11-02T07:15:47Z&wauth=urn:federation:authentication:windows and a window is shown to authenticate using username, and password.

So my question is how to authenticate with the resources server? Microsoft point me to this pagehttps://msdn.microsoft.com/library/mt622431.aspx?cs-save-lang=1&cs-lang=csharp#code-snippet-1and this guy explain how to authenticate using oauth2 http://www.powerobjects.com/2016/01/22/start-your-engines-getting-started-with-the-crm-2016-web-api/#collapse2

Microsoft said dynamics 365 is using three different security models (claims, active dirctory, and auth2 authentications)

*This post is locked for comments

I have the same question (0)
  • Drew Poggemann Profile Picture
    4 on at
    RE: Access Microsoft Dynamics CRM 2016 REST WEB API

    Hi Mohammad,

    I would suggest looking at MVP Jason Lattimer's tool to assist here.

    crmrestbuilder.codeplex.com

    Thanks much!

  • Community Member Profile Picture
    on at
    RE: Access Microsoft Dynamics CRM 2016 REST WEB API

    Hi Drew,

    This  is a javascript tool, Also I cannot add this tool because I'm not authorized to do that.

    Microsoft said organization service 2011(the soap ) will be removed in the new release (9) see this "As of the release of Microsoft Dynamics CRM Online 2016 Update 1 and Microsoft Dynamics CRM 2016 Service Pack 1 (8.1.0), the CRM 2011 endpoint has been deprecated. The 2011 endpoint will be removed some time after the release of Dynamics 365 version 9. We plan to provide updates to the Dynamics 365 SDK assemblies and tools over the next several minor releases, retargeting them to use the Web API instead of the 2011 endpoint." https://msdn.microsoft.com/en-us/library/dn281891.aspx?f=255&MSPPError=-2147217396  ,. I find code to connect to this service and authenticate but that's useless I need to access the new WEB API. Microsoft said you can access the new web api using oauth2 in authorization code flow, and my problem is even if that's exists I need the client credential or resource owner flow to be supported. 

    Thanks

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
HR-09070029-0 Profile Picture

HR-09070029-0 2

#1
UllrSki Profile Picture

UllrSki 2

#3
ED-30091530-0 Profile Picture

ED-30091530-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans