Hiow to stop workflow execution for an Item

Michael51
Tera Guru

Hello All,

We are generating a request through a script using the cart API and simultaneously inserting an approval record for the same request and we are auto-approving these requests via business rules (BR), so once request is Approved RITM's Workflow is getting quicked off and working as expected 

I want to avoid/stop Workflow which is running on Request Table because In the workflow we have condition if that doesn't match it cancels the request and move this to Cancelled state after workflow execution my BR is running and updating the state to Work In progress and making the request to Active but it is updating worklog as cancelled so In order to avoid that I had thought to design below solution 

 

My initial plan was to create a true/false field on the Request Table and set it to true using the Cart API while creating request and that to the trigger condition in workflow but Unfortunately, I have been unable to find a way to set the value for the request. After the request is generated via the cart API, it seems we can update any information related to the request.

 

can anyone suggest solution to achieve this 

 

@Ankur Bawiskar @Vishal Birajdar 

5 REPLIES 5

Vishal Birajdar
Giga Sage

Hi @Michael51 

 

If you provide some screenshots , it will be helpful to visualize please..!!

  

Vishal Birajdar
ServiceNow Developer

I know one thing, and that is that I know nothing.
- Socrates