- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2023 04:56 AM
Hi Experts,
I have one variable called " Request type" when ever user submit the item. variable value need to be populate on RITM "short description" .
I have written this script in flow design but it won't work. any one please help me on this.
Note: item short description is mandatory so already given some content.But now here as per my requirment variable value only populate on RITM short desc level.
also i tried this script
current.short_description= current.variables.request_type;
Any help will be appriciated.
Thanks in Advance
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2023 07:30 AM
why to update the RITM in GET Catalog variables step?
you can use update record action and set the short_description like this
No scripting required; just drag and drop the Pill
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2023 05:23 AM
@Aakhiil In the following action
You are querying the sc_request table and setting the description on it. Whereas you mentioned that you need to do it on the RITM short description.
Also, in the following image you have highlighted the short description of Catalog item whereas you should be checking the short description of the RITM.
Here you can find the RITM.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2023 08:20 AM
Hi @Sandeep Rajput
Thanks for your response. I have used this script in Flow design update record action. Somehow i am not able to get/pill the item variables so i am using this script but failed.Can you please correct me
var gr = new GlideRecord('sc_req_item');
gr.addQuery('request_item',current.request_item);
gr.query();
while(gr.next())
{
gr.short_description = current.variables.request_type;
gr.update();
}

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2023 08:36 AM
@Aakhiil You should be able to find requested item inside the trigger variable. Please refer to the following screenshots to access the requested item inside trigger variable in flow.
You do not have to write script to update short description simply use the update record action and select the record from trigger>Requested Item in data pill. You can also use Get Catalog Variables Action to extract values of variables submitted on the catalog item.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2023 10:53 AM
Hi @Sandeep Rajput
Appreciated .Thank you so much your help.