I am trying to create a lead in the Microsoft Dynamic 2011. I have connected my PHP script to the CRM and I get positive feedback.
I have used Fiddler to get a soap code that was used to create a lead in the CRM2011. However, when I use same code through my PHP script I get 'false' return.
The soap code that I have discovered is below:
<s:Body>
<Execute xmlns="http://schemas.microsoft.com/crm/2009/WebServices">
<command>1</command>
<commandXml>
<Input>
<id>{00000000-0000-0000-0000-000000000000}</id>
<name>lead</name>
<formId>e3b6ddb7-8df0-4410-ac7b-fd32e5053d38</formId>
<dataxml>
<lead>
<leadqualitycode>2</leadqualitycode>
<statuscode>1</statuscode>
<ownerid type="8" name="Vlad Hercules">{6710C3A0-6EE9-E211-B17C-984BE16D3DAA}</ownerid>
<decisionmaker>0</decisionmaker>
<salesstage>0</salesstage>
<subject>subject</subject>
<lastname>vladislav</lastname>
<transactioncurrencyid type="9105" name="usd">{5B1C0B98-6CE9-E211-8B44-984BE17C9A7B}</transactioncurrencyid>
<preferredcontactmethodcode>1</preferredcontactmethodcode>
<donotemail>0</donotemail>
<donotbulkemail>0</donotbulkemail>
<donotphone>0</donotphone>
<donotpostalmail>0</donotpostalmail>
<donotsendmm>0</donotsendmm>
</lead>
</dataxml>
<associations></associations>
</Input>
</commandXml>
</Execute>
</s:Body>
</s:Envelope>
How can this issue be resolved? Where can i get information on how requests look?
The example which was provided by microsoft returns false when I tried it:
<Create xmlns="http://schemas.microsoft.com/xrm/2011/Contracts/Services">
<entity xmlns:b="http://schemas.microsoft.com/xrm/2011/Contracts" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<b:Attributes xmlns:c="http://schemas.datacontract.org/2004/07/System.Collections.Generic">
<b:KeyValuePairOfstringanyType>
<c:key>name</c:key>
<c:value i:type="d:string" xmlns:d="http://www.w3.org/2001/XMLSchema">Newer Corporation</c:value>
</b:KeyValuePairOfstringanyType>
</b:Attributes>
<b:EntityState i:nil="true"/>
<b:FormattedValues xmlns:c="http://schemas.datacontract.org/2004/07/System.Collections.Generic"/>
<b:Id>00000000-0000-0000-0000-000000000000</b:Id>
<b:LogicalName>account</b:LogicalName>
<b:RelatedEntities xmlns:c="http://schemas.datacontract.org/2004/07/System.Collections.Generic"/>
</entity>
</Create>