Scenario:
- After an object is inserted/updated (can happen after any of the two) - I update an external system with that object's info - Object ID is needed - which is why I need the After Insert.
- Once I get from the trigger (FutureHandler) the result from the Httprequest - I parse it to check for error codes.
If all is ok, I need to update the object with a boolean checkbox: True/False - IsObjectTransmitted - I can't update the object at this time.
3.1 Else - Need to roll back the entire Trigger.
How can I achieve that?