Copy variables from RITM to Catalog Task
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2020 06:11 AM
Hi,
I wrote a scheduled job to created a manual task for an RITM after specific number of days.The Requested item(RITM) has variables associated with it which is visible under Variables tab of RITM. With this scheduled job I was able to create the tasks and map it to an existing RITM. But, when the new Catalog task is created it doesn't inherit/copy the variables from RITM. Is there any way we can copy all the RITM variables into the CTASK Variable tab in the scheduled job.
Thanks in advance.
Regards
Dinesh
- Labels:
-
Request Management

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2020 03:42 PM
Hi,
I just wanted to check-in on this.
If my reply above helped guide you correctly, please mark it as Helpful & Correct.
Thanks!
Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2020 06:28 AM
If this RITM has a workflow, creating a task outside of the workflow will cause the workflow to ignore the task - so it won't wait for completion before continuing to the next activity, and could close before the task is completed, not to mention confusing anyone looking at the workflow wondering how this task was created. If this is a concern, you can create the task in the workflow following a timer activity. In the workflow task activity you can define the variables to show on the task.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2020 10:57 PM
Is this question resolved or you need some more assistance?
if my answer helped you, kindly mark it as ✅ Correct & 👍Helpful so that it does not appear in unanswered list & close the thread.
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader