How to access the catalog task number within the Workflow Activity creating the task?

Zod
Giga Guru

HI,

within a Workflow on RITM we create a catalog task via the normal activity.

Beside setting the variables accordingly I need to update the activity stream with the task number created.

I also activated the "wait for completion" .. so I don't nee d the number later - I need it directly with the activity.

Sure I could add a business rule etc. to add it, but I wonder how to do WITHIN the activity.

 

This way it does not work ... The Text will show up, but not the number ... 

find_real_file.png

 

 

1 ACCEPTED SOLUTION

Thanks for your help and effort.

I added workflow.scrachpad.task_number = task.number within the task activity.

Then I added a parallel part, with a wait condition to be sure the scratchpad exists ... then I just used it to add the comment ... 😉

Works 😉

 

find_real_file.png

 

View solution in original post

7 REPLIES 7

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

did you try that? what value it gave

Regards
Ankur

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

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

as per this question it is not possible from what Chuck mentioned

Workflow - Create Task activity - Get task number

Regards
Ankur

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

Ankur Bawiskar
Tera Patron
Tera Patron

@Zod 

I just tried that and it didn't fetch the number

So the only option is before insert business rule

find_real_file.png

find_real_file.png

Regards
Ankur

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

Thanks for your help and effort.

I added workflow.scrachpad.task_number = task.number within the task activity.

Then I added a parallel part, with a wait condition to be sure the scratchpad exists ... then I just used it to add the comment ... 😉

Works 😉

 

find_real_file.png