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:46 PM
Hi,
You can use email script
var gr = new GlideRecord('sc_task');
gr.addQuery('request_item',current.sys_id);
gr.query();
while (gr.next()) {
gs.log(" Task number is"+gr.number);
}
Regards,
Anup
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-20-2017 11:10 PM
Thank you for your response.
I have tried the above script, still its showing blank. Task number is not getting displayed.
Regards,
Saridha.L
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-20-2017 11:27 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-21-2017 05:15 AM
Hi Anup,
Its working. Thank you for your help .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-20-2017 11:29 PM
Hi Anup.
var gr = new GlideRecord('sc_task');
gr.addQuery('request_item',current.sys_id);
gr.query();
while (gr.next()) {
gs.log(" Task number is"+gr.number);
}
I am using this.