forrest
forrest copied to clipboard
How to check if record update was succesful?
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