- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-22-2020 10:57 PM
Hello Guys,
How i can update the request short description same as catalog item name.
Thanks,
Teju
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-22-2020 11:18 PM
Hi,
I assume you must be having workflow for your catalog item so no need of BR
Use this script inside the Run Script activity of your catalog item workflow
var request = new GlideRecord('sc_request');
request.get(current.request);
request.short_description = current.cat_item.name;
request.update();
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-22-2020 11:02 PM
Hi there,
Within your Workflow or Flow, you just need to add a utility/step to update the short description.
If my answer helped you in any way, please then mark it as helpful.
Kind regards,
Mark
2020 ServiceNow Community MVP
2020 ServiceNow Developer MVP
---
LinkedIn
Community article list
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-22-2020 11:03 PM
Hi,
You can write a after insert BR on ritm table and add below code
var req = current.request.getRefRecord();
req.short_description = current.cat_item.name;
req.update();
Mark the comment as correct/helpful once worked.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-22-2020 11:13 PM
Hi Tejaswani,
Since your catalog item will be having workflow so in that just add Run Script activity at start which will just set Short Description as per your requirement.
current.short_description = current.cat_item.getDisplayValue();
Mark Correct if this solves your issue and also hit Like and Helpful if you find my response worthy based on the impact.
Thanks & Regards,
Viraj Hudlikar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-22-2020 11:18 PM
Hi,
I assume you must be having workflow for your catalog item so no need of BR
Use this script inside the Run Script activity of your catalog item workflow
var request = new GlideRecord('sc_request');
request.get(current.request);
request.short_description = current.cat_item.name;
request.update();
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader