Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>If required as mentioned by others you CAN connect using SOAP (probably not recommended but as you want to know). If you don't know how to use SOAP/JavaScript then I suggest you read this: <a href="https://stackoverflow.com/questions/124269/simplest-soap-example-using-javascript">Simplest SOAP example</a></p> <p>To connect to CRM Online using Office 365 (all Windows Live accounts are migrating to Office 365) then you need to get security tokens then use that for your requests.</p> <p>The following is a request for tokens in PHP that you should be able to refactor for JavaScript.</p> <pre><code>$TokenSOAP = '&lt;s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/2005/08/addressing" xmlns:u="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"&gt; &lt;s:Header&gt; &lt;a:Action s:mustUnderstand="1"&gt;http://schemas.xmlsoap.org/ws/2005/02/trust/RST/Issue&lt;/a:Action&gt; &lt;a:MessageID&gt;urn:uuid:%s&lt;/a:MessageID&gt; &lt;a:ReplyTo&gt; &lt;a:Address&gt;http://www.w3.org/2005/08/addressing/anonymous&lt;/a:Address&gt; &lt;/a:ReplyTo&gt; &lt;a:To s:mustUnderstand="1"&gt;%s&lt;/a:To&gt; &lt;o:Security s:mustUnderstand="1" xmlns:o="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"&gt; &lt;u:Timestamp u:Id="_0"&gt; &lt;u:Created&gt;%sZ&lt;/u:Created&gt; &lt;u:Expires&gt;%sZ&lt;/u:Expires&gt; &lt;/u:Timestamp&gt; &lt;o:UsernameToken u:Id="uuid-cdb639e6-f9b0-4c01-b454-0fe244de73af-1"&gt; &lt;o:Username&gt;%s&lt;/o:Username&gt; &lt;o:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText"&gt;%s&lt;/o:Password&gt; &lt;/o:UsernameToken&gt; &lt;/o:Security&gt; &lt;/s:Header&gt; &lt;s:Body&gt; &lt;t:RequestSecurityToken xmlns:t="http://schemas.xmlsoap.org/ws/2005/02/trust"&gt; &lt;wsp:AppliesTo xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy"&gt; &lt;a:EndpointReference&gt; &lt;a:Address&gt;urn:crmapac:dynamics.com&lt;/a:Address&gt; &lt;/a:EndpointReference&gt; &lt;/wsp:AppliesTo&gt; &lt;t:RequestType&gt;http://schemas.xmlsoap.org/ws/2005/02/trust/Issue&lt;/t:RequestType&gt; &lt;/t:RequestSecurityToken&gt; &lt;/s:Body&gt; &lt;/s:Envelope&gt;'; $TokenSOAP = sprintf($TokenSOAP, self::gen_uuid(), 'https://login.microsoftonline.com/RST2.srf', self::getCurrentTime(), self::getNextDayTime(), $username, $password); </code></pre> <p>Change the Endpoint Reference address as required depending on your crm region</p> <p>This will return two security tokens and a key identifier.</p> <p>Then you need to do your add and retrieve. If you google "CRM 2011 SOAP" and the following four functions "Create", "Update", "Retrieve", and "RetrieveMultiple" you should get lots of SOAP samples for example:</p> <p><a href="http://www.mscrmconsultant.com/2012/07/create-update-delete-record-using.html" rel="nofollow noreferrer">http://www.mscrmconsultant.com/2012/07/create-update-delete-record-using.html</a></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload