Skip to main content

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 ?

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.