Can we set RITM's value before ordering the catalog item?

BhagyashriS8790
Tera Contributor

I have created a rest api in service now which triggers a catalog item. I update the generated RITM's source field.
The source field on the RITM is used to identify whether the RITM was triggered through the API. 
In the workflow, I'm performing certain actions based on the 'source' field. 

but the issue is that the field gets updated later, while the workflow is checking it immediately. How can I ensure the workflow uses the updated value of the source field? Can we set RITM's value before ordering the catalog item?

1 ACCEPTED SOLUTION

Viraj Hudlikar
Tera Sage

Hello @BhagyashriS8790 

 

The field you mentioning is over RITM or is it variable?

If its field over RITM then you cannot set it when you call API. If its variable then while calling API do pass value for that variable and use it further.

Alternative you can try is in workflow the logic of checking value before happening try to keep wait or something so value is set and then you can utilize it further.

If my response has helped you hit helpful button and if your concern is solved do mark my response as correct.

 

Thanks & Regards
Viraj Hudlikar.

View solution in original post

5 REPLIES 5

@BhagyashriS8790 

Thank you for marking my response as helpful.

As per new community feature you can mark multiple responses as correct.

If my response helped please mark it correct as well so that it benefits future readers.

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