- 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 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 08:02 AM
Hi @Ankur Bawiskar
Thanks for your response.
Here I am unable get/pill the variables on update record action.(Not sure item is created through cat builder ) Can I go with this script
var gr = new GlideRecord('sc_req_item');
gr.addQuery('request',current.request);
gr.query();
while(gr.next())
{
gr.short_description = current.request_type;
gr.update();
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2023 07:41 PM
it should be possible and easy
can you share your complete flow screenshots?
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-02-2023 12:14 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2023 02:13 AM
are you not able to select the variable from Get Catalog Variable step inside the Update record action?
can you share screenshot of Update Record action step?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader