Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to check if record update was succesful? #306

Open
sospcie opened this issue Feb 17, 2022 · 0 comments
Open

How to check if record update was succesful? #306

sospcie opened this issue Feb 17, 2022 · 0 comments

Comments

@sospcie
Copy link

sospcie commented Feb 17, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant