We are working on one web-service call in after trigger. As we can not call synchronous web-service call in trigger, we are using future call-out. But we want to rollback the changes if web-service call fails or throws the error after completion.
One way, store the old values is dummy-records and when want to roll back the changes, update the record using dummy-record and delete the dummy-record.
Is there any other way to rollback the changes?
Thanks in advance:)