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 :
Microsoft Dynamics CRM (Archived)

Is able to obtain AuthToken from XRMHelperClasess to use in REST Calls?

(0) ShareShare
ReportReport
Posted on by

Hi, I'm in a Trial of CRM Online , I'm trying to explain what im trying to acomplish:

I can connect and make retrieve entities using the CRM SDK (through XRM helper classes generated wit crm utility). 

I want to make REST calls from PHP  (for retrieving entities), to do that I need to get a token....It is able to obtain this token with XRM helper classes ?.

thanks

*This post is locked for comments

I have the same question (0)
  • ManirajKV Profile Picture
    1,477 on at

    Hi,

    try this link it may help u

    stackoverflow.com/.../integrating-microsoft-dynamic-2013-or-2015-with-php

  • Community Member Profile Picture
    on at

    Thanks for the links, But php examples (Excelent article of http://jlattimer.blogspot.com) explain how to connect and retrieve data using SOAP and PHP.

    I want to use the Rest Api of CRM Online , for example making CURL calls from php. I've know that is able to  to authenticate using ADAL (for example), But I've only user and pass of office365/CRM Online Trial portal (not client Id, and Not Azure Account )

    I don´t know (if it is possible....) how to get/obtain the AccexxToken to be inserted as Header "Bearer" directly from PHP, or how to get it from XRM Helper classes , and after that using in php REST calls..

    Thanks again

  • Suggested answer
    ScottDurow Profile Picture
    21 on at

    You can use Oauth 2 with the REST 4 endpoint:

    see msdn.microsoft.com/.../dn531009.aspx

    and blogs.msdn.com/.../use-oauth-to-authenticate-with-the-crm-service.aspx

    You will need an Azure account to get the ClientID registered.

    Hope this helps

  • Community Member Profile Picture
    on at

    Thanks, Yes, I've know ... But as I mention before I've not a Azure Account (neither clientId) .. The question is if there are another alternative to obtain the AccessToken , whitout Azure account.

  • Suggested answer
    ScottDurow Profile Picture
    21 on at

    No - the only alternative is to use the SOAP library that doesn't need a ClientID.

    See - develop1.net/.../MicrosoftXrmClient-Part-2.aspx

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 > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans