AnsweredAssumed Answered

How to update an Opportunity via the SOAP API

Question asked by 3bedf68e1c1e3ceb23f7cdcde1978d38d8ebe9a5 on Nov 18, 2014
Latest reply on Nov 19, 2014 by 51864

Hey everybody,

My company utilizes Microsoft Dynamics CRM. The CRM instance pushes opportunity data into Marketo. From a separate application, I am trying to update the opportunity via the SOAP API, but having difficulty. I keep getting a response stating that the Opportunity is unchanged.

The id referenced in the request is captured by using getMObject in a previous request. My request using SyncMObjects looks like this:

$params = new \stdClass();

$mObj = new \stdClass();
$mObj->type = 'Opportunity';
$mObj->id = $id;

$attrib1 = new \stdClass();

$attribList = array ($attrib1);

$costAttrib = new \stdClass();
$costAttrib->attrList = $attribList;

$mObj->typeAttribList= array($costAttrib);
$params->mObjectList = array($mObj);


My response is this:

I have tried a variety of different small changes, but keep getting the unchanged result. What am I missing? Am I missing a required attribute to update an opportunity?

Let me know when you can!

Phil Hotchkiss