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)

Sandbox API login information

(0) ShareShare
ReportReport
Posted on by 305

Hi support,

I am trying to connect the crm using PHP and I have found some resources at http://mscrmtools.blogspot.com.au/ . I have the login details of the sandbox account. Now I just want to know what is the username and password that is used in API (

$liveIDUseranme = "?";

$liveIDPassword = "?";

)

Is it the same that is used for login in crm sandbox? I tried using this and could not make the API work.

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Mahendar Pal Profile Picture
    45,095 on at

    Hello,

    This will be office365 user id and password, that you use to access MS CRM Online.

  • Suggested answer
    Bruno Lucas Profile Picture
    5,421 on at

    depend of your php code

    if you enter the crm login username@organisation.onmicrosoft.com + password, the discovery service should be able to break that down

    it will grab the disco.crm url (depend of your region) and find your crm from the @organization part of your login id

    the problem is that you may need to retrieve the organization once you login

    real instances will have a url orgname.crm5.dynamics.combut the UAT is "uat.crm5.dynamics.com" without the organization name. you may need to redirect to uat.crm5.dynamics.com after you login

  • Bishwadeep Profile Picture
    305 on at

    Hey Bruno,

    Thank you for the reply. After adding the user name and password

    I can see the security token.

    When I try to add new record I get this error:

    www.w3.org/.../faulturn:uuid:587284ab-32da-4387-991e-b52f7d492704s:Sendera:InvalidSecurityAn error occurred when verifying security for the message.

    Any idea what this error means?

  • Suggested answer
    Bruno Lucas Profile Picture
    5,421 on at

    if you got the token without any error message, that could be related to a time difference between your machine and the service. make sure your workstation is accurate to the range of minutes, not only hours.  did you get any time stamp from some Error message?

    are you trying something like this:

    http://msdn.microsoft.com/en-us/library/hh675404.aspx

  • Verified answer
    Bruno Lucas Profile Picture
    5,421 on at

    this example looks quite good

    crmtroubleshoot.blogspot.com.au/.../dynamics-crm-2011-php-and-soap-using.html

    it walks though the whole authentication and stops here where you move to the CRUD endpoint

    return self::GetSOAPResponse('yourorganisation.api.crm5.dynamics.com/.../Organization.svc&;, $xml);

    probably you will need to change yourorganisation.api.crm5.dynamics.com to  uat.crm5.dynamics.com or uat.api.crm5.dynamics.com

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