- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2021 11:03 PM
Hi All, We have a catalog item created and after submitted it will go for 2 levels of approval and once the approval is done it will create a task in the task the short description is mandatory field and in short description we need to get the catalog item name: requstedfor : user ID. we need this details in short description field. How to get these details please suggest.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2021 11:14 PM
Hi Ashwini
In your catalog task activity , use below code in script section.
var desc;
desc += "Item Name :"+current.cat_item.name;
desc += "Requested For :"+current.request.requested_for.getDisplayValue();
desc += "Requested For :"+current.request.requested_for.user_name;
task.short_description =desc;
Mark it helpful if this helps you to understand. Accept solution if this give you the answer you're looking for
Kind Regards,
Rohila V
2022-25 ServiceNow Community MVP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2021 11:14 PM
Hi Ashwini
In your catalog task activity , use below code in script section.
var desc;
desc += "Item Name :"+current.cat_item.name;
desc += "Requested For :"+current.request.requested_for.getDisplayValue();
desc += "Requested For :"+current.request.requested_for.user_name;
task.short_description =desc;
Mark it helpful if this helps you to understand. Accept solution if this give you the answer you're looking for
Kind Regards,
Rohila V
2022-25 ServiceNow Community MVP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-21-2021 02:12 AM
Thank you Rohila, Its working fine.
Hey just 1 small question I have a cmdb_ci field on catalog item ok and it should display only 1 perticuler value and user should not select any values from that field. so I made it manadatory but not getting how to display a single value in that. Do you have any input for this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-21-2021 02:40 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-21-2021 03:02 AM
I tried adding name is --- but still its not displaying that value