We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

How to check whether gr.update() failed due to setAbortAction(true)

praptiparab
Kilo Explorer

How to check whether update happened successfully or not?
I have created transform map, where I am updating multiple records in onBefore() script.
but meanwhile some BR written on same table aborts the update using setAbortAction(true).
I want these BRs to execute and abort incorrect data update. But problem is I can't find in transform map whether update happened or not.
I want to stop execution of further operations written in Transform Map if record did not updated.

Is there any way to find whether update using gr.update() did not happened? So I can display error message and stop further actions (updates) written in transform script.

6 REPLIES 6

Thanks, it worked!

tom_m
Tera Contributor

This isn't working for me. I'm prevented from updating a field due to ACLs but am still receiving the sys_id even though the field is not updated