Populate Task number in Notification - Workflow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-20-2017 10:12 PM
Hi Team,
I have created a notification through workflow. There I have to populate Task number.
I have tried with ${number} ,RITM is displaying, and tried ${task.number}- I Am getting Blank value. Can anyone help me please.
Regards,
Saridha.L
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-20-2017 11:31 PM
Hi Saridha,
Create Run Script Activity before that Notification Activity and store the task number to scrathpad variable then use it in the notification activity.
var grNum = new GlideRecord('sc_task');
grNum.addQuery('request_item',current.sys_id);
grNum.query();
if(grNum.next()){
workflow.scratchpad.taskNumber = grNum.number;
}
Notification Activity:
${workflow.scratchpad.taskNumber}
Regards,
Kiruthika Bala

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-07-2018 04:36 AM
Thank you for this solution as we were having the same issue.
Out of curiosity, how would I format this if I wanted the displayed task number to be a link to the task?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-20-2017 11:59 PM
Hi Kiruthika,
Thank you for your response.
I have tried the above solution. But it didnt work.
Regards,
Saridha.L
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-21-2017 12:02 AM
Show a screen capture of your whole workflow. Maybe you don't have a task under your RITM.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-21-2017 12:09 AM