function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Heidi ApaHeidi Apa 

Webservice callout rollback in trigger when not synchronized Best practice

Hi!

I am with a webservice rollback issue here.. We want to send data of some accounts when we insert and update them in salesforce to an external webservice. 
My doubt is, which is the best practice when the update or insert isnt synchronized properly in the webservice and it returns a error code? Update this record in salesforce like "Not synchronized" or controll the response and show an error in salesforce and not let the user doing this update (doing rollback)?

Any idea will be really helpfull, thank you!! :)