+ Start a Discussion
conpasconpas 

CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY

I try to create a new workflow step, but the api show me a error: CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY

 

$records[0] = new stdclass();
$records[0]->StepStatus = 'Approved';
$records[0]->Comments = 'hello';
$records[0]->ProcessInstanceId = '04g50000000n0xxAAA';


$response = $mySforceConnection->create($records, 'ProcessInstanceStep');

print_r($response);


 

You can see, the propiety support the create funcion, but dont work!!

http://www.salesforce.com/us/developer/docs/api/index_Left.htm#CSHID=sforce_api_objects_approval.htm|StartTopic=Content%2Fsforce_api_objects_approval.htm|SkinName=webhelp

 

Thanks.

 

 

 

SuperfellSuperfell

I think you should be using the process method, not create.

conpasconpas

Sorry, but the method function not exist!!!??!?!

 

Call to undefined method SforceEnterpriseClient::method

conpasconpas

Thanks, but i dont see any similar class in the PHP toolkit!!!

SuperfellSuperfell

If you're on the latest version of the PHP toolkit, then you should log an issue for it.