business rule

kulkarnirah7576
Tera Contributor

we have a before business rule with update as true then the job condition was job state changes from pending coe state and script level here we have curent.assigned_to!='' and current.assignment_group=sc_group then we have gs.adderrormessage('the job state chnages '); but if tried to comment the gs.adderrormessage('the job state chnages '); then i got  a popup message that insert update when i tried to update my job state to inprogress while adding the assigned to value while its value was empty so tell me what is this invalid update popup???

2 REPLIES 2

GlideFather
Tera Patron

ahoy @kulkarnirah7576,

 

your description is a bit chaotic and unclear, could you please share your business rule and also explain the expected use case step by step and optimally formatted to understand it better maybe?

 

Also, you said it is a before BR - is it before update or insert (or both)?

_____
Answers generated by GlideFather. Check for accuracy.

Tanushree Maiti
Tera Patron

Hi @kulkarnirah7576 

 

Check if you have any Before ( update may be) Business Rule script for current.setAbortAction(true).
If the message statement is commented out while the abort action remains active, the update will be blocked without showing any reason or error message to the user.

 

 

Please Accept the solution if it assisted you with your question & Mark this response as Helpful.
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti