
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2017 12:35 PM
How do I add RITM number inside of my task description. I know I have to add the code inside of the workflow activity:
task.description = ???
Solved! Go to Solution.
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2017 01:35 PM
If you are wanting to create a Catalog Task [sc_task] record from a Workflow Activity using the Advanced script options, then you can use the following syntax:
task.description += 'RITM Number: ' + current.number;
Since the workflow is running from the Requested Item [sc_req_item] table, all you need is the number from that current record.
I hope this is helpful.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2017 12:52 PM
Hi Claudia,
You need to have the RITM reference in the workflow activity. Assuming your RITM reference is 'req', please find the below options.
If it needs to be appended to existing description use 'task.description += ' RITM Number : ' + req.number;'
If it needs to replace existing description 'task.description = req.number;'
Hope this helps. Mark the answer as correct/helpful based on impact.
Thanks
Antin

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2017 12:55 PM
I tried but but I have an error . it says that req is not defined...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2017 12:57 PM
Yes, you need to have the reference of RITM in the activity. If not, you need to query and use it. Would you be able to share the code of the activity?
Hope this helps. Mark the answer as correct/helpful based on impact.
Thanks
Antin

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2017 01:23 PM