The CreatorCon Call for Content is officially open! Get started here.

Populate Task number in Notification - Workflow

Saridha_L1
Tera Expert

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

21 REPLIES 21

ruzzty06
Tera Expert

What number do you want to show? Not the RITM number? And what table are you working with?


Hi Rusty,



Thank you for your response.



I wanted to populate Task number, I have created a notification on RITM table.



Regards,


Saridha.L


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;


ruzzty06
Tera Expert

Can you show how are you creating the Task and the notification? Do you have only 1 task under the RITM?