What happened if I setWorkflow(false)

ammar_k
Tera Expert

Hello, 

I am running a script background for updating some cases, this triggers a business rule that send mail to users, to prevent that i use the method setWorkflow(false)

should I set the workflow back to true after ? what happened if I don't ? 

 

thank you 

1 ACCEPTED SOLUTION

Sandeep Rajput
Tera Patron

@ammar_k The setWorkflow(false) prevents business rules/flows/workflows from running. It is not needed to set the setWorkflow to true afterwords.

View solution in original post

6 REPLIES 6

@ammar_k 

Hope you are doing good.

Did my reply answer your question?

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

@ammar_k 

Hope you are doing good.

Did my reply answer your question?

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