How to get the catalog task number and task sys_id within the Workflow Activity creating the task?

Khalid5
Tera Expert

I have a use case, where I need to fetch the task number and task sys_id at create task workflow step to send these values to REST Message - POST method.

Any suggestion how I can get these values at the create task workflow step ?

I have created this workflow for a service catalog item and after approval stage I am creating a fulfillment task.

Any clue to get this done would be appreciated.

Regards,

Khalid

 

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Khalid,

task sys_id can be obtained in the catalog task advanced activity using this

task.setNewGuid();

for getting task number workaround here

https://community.servicenow.com/community?id=community_question&sys_id=618f347ddbeca450b1b102d5ca96...

Regards
Ankur

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

View solution in original post

5 REPLIES 5

Hi Ankur,

Thanks for the help! it went through successfully.

Regards,

Khalid