Populate the requested for catalog item variable
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2023 11:36 PM
Hello Community,
I would like assistance with populating the request.requested_for field using the custom variable named requested_for.
In the catalog item, we have created a custom variable named requested_for. When we submit the request, the "requested for" is correctly set in both the request and the RITM.
Now, we want to display the value of the requested_for in our custom variable.
Please refer to the below screen shot.
Thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2023 11:43 PM
How you are selecting the requested_for on RITM or REQUEST table? I assume it is picking the current loggedin user
You can update the custom variable of catalog item in the workflow(runscript) as:
current.variables.requested_for = current.requested_for;
If my answer solved your issue, please mark my answer as ✅ Correct & 👍Helpful based on the Impact.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2023 12:47 AM
Want to set requested_for using flow designer. Is there any way to set the requested for using flow designer?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2023 12:59 AM
request.requested_for is by default populated with logged in user.
To set it explicitly you will require script.
You can use Lookup record on REQ and then set the field value with the variable requested for
where are you stuck?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2023 02:19 AM
We are trying to set the requested for using the look-up but still not working. could you please assist regarding that?
Thanks