- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2021 10:35 AM
Hello,
I need help to set the catalog task short description dynamically my workflow is attached to more than one catalog item so whatever i set in the short description is getting set for all ,so how i can make it dynamically .
The catalog task short description should be ,procure the <catalog item name> for <requested for > delivery may take time based on the availability of service engineer.
Thanx,
Solved! Go to Solution.
- Labels:
-
Service Catalog

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2021 10:39 AM
Hello
Open Your Catalog Task and the script section of your catalog task just write the script,
task.short_description = 'Procure the' +' '+current.cat_item.getDisplayValue() + ' for' + current.variables.<requested for variable back end name>+' '+' delivery may take time based on the availability of service engineer.'
Please Mark Correct and Helpful
Thanks and Regards
Gaurav Shirsat

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2021 10:37 AM
Hi there,
Withiin the script of the Catalog Task, you can use:
task.short_description = 'Something goes here ' + current.variables.your_variable.getDisplayValue();
With this you should be able to create any format you'd like.
Kind regards,
Mark
2020, 2021 ServiceNow Community MVP
2020, 2021 ServiceNow Developer MVP
---
LinkedIn
Community article, blog, video 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
11-29-2021 10:44 AM
Or exactly your sentence:
task.short_description = 'Procure the ' + current.cat_item.getDisplayValue() + ' for ' + current.variables.requested_for.getDisplayValue() + ' delivery may take time based on the availability of service engineer.';
Kind regards,
Mark
2020, 2021 ServiceNow Community MVP
2020, 2021 ServiceNow Developer MVP
---
LinkedIn
Community article, blog, video 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
11-29-2021 10:39 AM
Hello
Open Your Catalog Task and the script section of your catalog task just write the script,
task.short_description = 'Procure the' +' '+current.cat_item.getDisplayValue() + ' for' + current.variables.<requested for variable back end name>+' '+' delivery may take time based on the availability of service engineer.'
Please Mark Correct and Helpful
Thanks and Regards
Gaurav Shirsat