Access RITM Variables using Flow Designer
Hi,
In this article, I will show you how we can access the variables data in the flow designer.
Prerequisites: Install this plugin Flow Designer support for Service Catalog.
Please note that you cannot create a trigger on sc_req_item table in flow designer. So here is how you should do it.
1. On trigger select the table as sc_request.
2. Then create a action and select look up record. Select the table as Requested Item. Under conditions, select the request as the created request record.
3. Then click on select Action and select the available OOB Action "Get Catalog Variables"
In that, Under submitted field, select the RITM record from the above lookup action
Under Template Catalog item, select your catalog item
Once catalog item is selected then you will see a list of variables on the left side. Drag whichever varialbes you wanted to use on the right side bucket.
Here is the screenshot for reference.
Once this is done, then you can access these variables in the follow up actions.
So for demo purpose I am just storing those variable values in work notes.
4. Create Update record action and select your RITM record from the above actions.
Under field values select work notes.
On the right side, select the variables from above created action "Get catalog variables" and save.
Here is the screenshot for reference.
Once this is done save and activate it.
Then your final flow should look like this.
Then create a new request and test it.
Let me know if you have any questions in the comments below.
Mark the article as helpful and bookmark if you found it useful.
Regards,Asif
https://www.servicenow.com/community/developer-articles/access-ritm-variables-using-flow-designer/ta-p/2299057