In the workflow notification incident number is not coming

Servicenow de11
Tera Contributor

In the RITM Workflow by using create task activity, incident will be created. After that  dynamic incident number should be coming in the Workflow notification. I have tried using ${task.number} in the subject but it is not coming. Can anyone help me to achieve this. Attached screenshots

 

Thanks in advance

 

2 ACCEPTED SOLUTIONS

Chaitanya ILCR
Kilo Patron

Hi @Servicenow de11,

store the incident number in the workflow scratchpad 

include below line in the create task (create incident) activity that you have shared in the screenshot

workflow.scratchpad.number = task.number;

instead of ${task.number} in the notification activity use ${workflow.scratchpad.number} 

 

Please mark my answer as helpful/correct if it resolves your query.

Regards,
Chaitanya

 

 

View solution in original post

Ankur Bawiskar
Tera Patron
Tera Patron

@Servicenow de11 

please follow approach from @Chaitanya ILCR and share updates

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

View solution in original post

3 REPLIES 3

Chaitanya ILCR
Kilo Patron

Hi @Servicenow de11,

store the incident number in the workflow scratchpad 

include below line in the create task (create incident) activity that you have shared in the screenshot

workflow.scratchpad.number = task.number;

instead of ${task.number} in the notification activity use ${workflow.scratchpad.number} 

 

Please mark my answer as helpful/correct if it resolves your query.

Regards,
Chaitanya

 

 

Its working, Thankyou for your help

Ankur Bawiskar
Tera Patron
Tera Patron

@Servicenow de11 

please follow approach from @Chaitanya ILCR and share updates

If my response helped please mark it correct and close the thread so that it benefits future readers.

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