Notification to(script) in workflow

rody-bjerke
Giga Guru

Hi,

I'm trying to script who should get an email notification from the system, through workflow.

I've created a Notification activity like below:

find_real_file.png

Then i want to send an email to requested_for (reference to sys_user), requested_for is a variable so i've tried adding:

current.variables.requested_for

At the same time i want to send the same mail to the requested_for's manager. The manager is set in a seperate field, so i've tried using:

current.variables.manager.

Any idea on how to use this TO (Script) to make it work?

Best regards,

1 ACCEPTED SOLUTION

rody-bjerke
Giga Guru

Solution: (where you can add answer.push for both user and manager):



answer = [];


answer.push(current.variables.manager.sys_id);


View solution in original post

5 REPLIES 5

God sent.