how to rollback the changes when there is error in promise chain.
for example: promise has 3 methods
In savetheRequest method we are sending email to few users. we cant bring that logic to sendToAwsMethod.
So whats happening here :
In sendToAws method is failing but still Email is triggering to particular Users. If all 3 method is successfully. then only mail should trigger. How to do this??
send email logic in Apex side. Please let me know if these Information are not enough to answer the question.I will update the question