+ 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!! :)