business rules is not working without current.update

krishnaredd
Tera Contributor

insert and update business rule not working without current.update syntax in servicenow

9 REPLIES 9

PrashantLearnIT
Giga Sage

Hi @krishnaredd 

 

What type of Business Rule are you trying before or after?

********************************************************************************************************
Please appreciate the efforts of community contributors by marking the appropriate response as the correct answer and helpful. This may help other community users to follow the correct solution in the future.

********************************************************************************************************
Cheers,
Prashant Kumar
ServiceNow Technical Architect


Community Profile LinkedIn YouTube Medium TopMate
********************************************************************************************************

Anurag Tripathi
Mega Patron
Mega Patron

If it is a before BR it will work.

After BR wont work without it but you should not update the current record in after BR.

-Anurag

krishnaredd
Tera Contributor

We are using the After Insert and update BR to push some of the form field's value into one field

Hi @krishnaredd ,

Avoid current. update()

 

Try Glide to that Record table and update the record.

current.setWorkflow(false); // Prevents recursive triggers

current.update();