Can we rollback model.save if any exception is occurred in custom logic executed after model.save ?

edited June 10, 2019 in Questions
I have following kind of logic in my custom JS script

1. SObject model.save
2. Custom logic in callback function of model.save

I want to rolllback #1 model.save if any exception is occurred in #2 custom logic.

Is this possible in skuid ? if yes, any pitfalls for it ?

Comments

  • Zach McElrathZach McElrath Principal Software Engineer Chattanooga, TN 💎💎💎
    edited June 10, 2019
    No, you cannot rollback the save once you get into the callback function. Once the callback function is invoked, the save transaction has already been committed.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!