Workflow Scratchpad > Email Notification not working

Brendan Hallida
Kilo Guru

Hi all,

So I have some scratchpad variables that I am trying to pass over to my email notifications.

I can use the variables from the variable pool successfully, so I know that is working fine, however, the scratchpad variables do not display.

I have logs in my run script in the workflow, and the scratchpad is working as intended from the workflow perspective, I am just not sure why it's not passing over to the notification.

Run Script:

 

var fullname = 'Brendan Test';
workflow.scratchpad.new_users_name = fullname;

Email Notification:

${workflow.scratchpad.new_users_name}

Anyone have any ideas why it is not working?

Cheers, Brendan

1 ACCEPTED SOLUTION

Mike Patel
Tera Sage

You can’t call scratchpad in notification. You need to store value somewhere in RITM. Create varibles or field on ritm table than call that field in notification.

View solution in original post

4 REPLIES 4

Mike Patel
Tera Sage

You can’t call scratchpad in notification. You need to store value somewhere in RITM. Create varibles or field on ritm table than call that field in notification.

Ah damn, that sucks!

 

I had to create some hidden variables, but it will work out well in the end as the data I have in these will come in handy being available in the variable editor as well.

 

Thanks mate!

Hi, I am not sure if things have changed, but I have managed to get this working on our London instance.

Run Script: 

var vpn = current.variables.vpn_record; 
var managed = vpn.managed_by.getDisplayValue();
workflow.scratchpad.managedby = managed;

Email Notification:

If you have any questions or concerns please contact <b>${workflow.scratchpad.managedby}</b>.<br/>

find_real_file.png

Thanks , found this working for me.