Error message on aborting action in Business Rule

Pallavi_G
Tera Expert

I want to show error message on aborting action in Business Rule. My BR is before update, the abort action is working fine but the error message is not displaying, it is only showing once the form is reloaded. And with my BR form is not reloading automatically it has to manually reload.

I checked in the existing community posts but did not get proper solution. Anyone has any idea or any other way how can i achieve to show error message on aborting of action.

 

Thanks in Advance.

6 REPLIES 6

OlaN
Giga Sage
Giga Sage

Hi,

Double check that your errormessage is before the aborting action in your business rule script.

Ankur Bawiskar
Tera Patron
Tera Patron

@Pallavi_G 

please share your script here.
Did you try to swap the message and abort line of code?

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Pallavi_G
Tera Expert

Pallavi_G_0-1748244748971.png

This is my code and i tried swapping message with abort line of code

@Pallavi_G 

actually your code should work fine.

If my response helped please mark it correct and close the thread so that it benefits future readers.

 

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader