Copy variables from RITM to Catalog Task

dineshchoudhary
Kilo Guru

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

7 REPLIES 7

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!

Brad Bowman
Kilo Patron
Kilo Patron

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. 

Ankur Bawiskar
Tera Patron
Tera Patron

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

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader