- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-28-2023 04:04 AM
Hi All,
I want to add below lines in the catalog task description by using advanced script in catalog task activity.
1. Validate approval.
2. If a spot buy, create and distribute PO to Vendor.
3. Add items ordered to Inventory tracking spreadsheet.
4. If spot buy, update inventory tracking spreadsheet..
5. If spot buy, Mark PO as received.
Please assist.
Thank you.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-28-2023 04:40 AM
@Joshuu I am assuming you would like to set description on the catalog task via the work flow SC Task activity.
Here is how you can do it.
Here is the script.
task.description = ' 1. Validate approval.\n 2. If a spot buy, create and distribute PO to Vendor.\n 3. Add items ordered to Inventory tracking spreadsheet.\n 4. If spot buy, update inventory tracking spreadsheet..\n 5. If spot buy, Mark PO as received.';
Hope this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-28-2023 04:36 AM
so what does that mean?
what script did you start and where are you stuck?
with the above information we cannot help much
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-28-2023 04:54 AM
It could have been better you starting the script from your side so that it will be learning for you as well.
Getting direct answers may not help you in long term for development skills.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-28-2023 05:08 AM
Hi @Ankur Bawiskar ,
Thank you.
And I just found that we can even add the text in the instructions field in the catalog task activity so that it will be populated in the description filed without any script.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-28-2023 04:55 AM
Thanks for the response, got the solution from @Sandeep Rajput . Just want to add the description through advanced script activity in the workflow.