locked
crm 2013 create request using soap in javascript RRS feed

  • General discussion

  • Hi,

    We are in the process of upgrading our CRM 4.0 environment to CRM 2013. We are converting out javascript code right now. We have one code available which is creating new opportunityproduct record. We are doing this using soap request in CRM 4.0.

    So I have updated xml with CRM 2013 endpoints and done required changes as per following. Still its giving me error "Required member 'LogicalName' missing for field 'Target'".

    <soap:Envelope xmlns:soap='http://schemas.xmlsoap.org/soap/envelope/' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:xsd='http://www.w3.org/2001/XMLSchema'>

    <soap:Body>

    <Create xmlns='http://schemas.microsoft.com/xrm/2011/Contracts/Services'>

    <CreateDuplicatesOptionalParameter>

      <value>false</value>  

    </CreateDuplicatesOptionalParameter>

    <PersistInSyncOptionalParameter> 

    <value>false</value>  

    </PersistInSyncOptionalParameter>

    <entity type='opportunityproduct' > 

    --All Attributes

     </entity>

      </Create>

      </soap:Body>

      </soap:Envelope>";

    Wednesday, August 6, 2014 8:05 AM