forrest icon indicating copy to clipboard operation
forrest copied to clipboard

How to check if record update was succesful?

Open sospcie opened this issue 3 years ago • 0 comments

Hi,

I have noticed that sometime, the record I try to update does not getting updated, and I also not seeing any error. When I retry later, the same records gets updated.

How can I check if the call was success?

$response = Forrest::sobjects('Case/'.$record['Id'],[ 'method' => 'patch', 'body' => [ 'fieldname' => "fieldvalue" ], 'headers' => [ 'Sforce-Auto-Assign' => 'FALSE' ] ]);

With the above method the $response variable is always null.

Anyone knows how to check for success/failure ?

Thank you

sospcie avatar Feb 17 '22 13:02 sospcie