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 10:23 PM
What number do you want to show? Not the RITM number? And what table are you working with?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-20-2017 10:31 PM
Hi Rusty,
Thank you for your response.
I wanted to populate Task number, I have created a notification on RITM table.
Regards,
Saridha.L

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-20-2017 10:42 PM
we can try something like this, but one RITM can have multiple tasks?
var gr = new GlideRecord('sc_task');
gr.addQuery('request_item', current.sys_id);
gr.query();
if(gr.next())
var tasknum = gr.number;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-20-2017 10:41 PM
Can you show how are you creating the Task and the notification? Do you have only 1 task under the RITM?