How to create different Recipients List

Ivan Munoz Mart
Kilo Contributor

Hello experts,

I have been assigned to create 3 surveys, one for general employees (not managers, not fulfillers), one for all supvs and managers, and one for all case fulfillers (not managers). I tried using Recipients Lists, but when I used different tables, other than sys_user, the list does not populate the recipients. Any idea why does this happen? Or how to do this in a different way? maybe a script?

Thank you.

 

1 REPLY 1

Marcin20
Mega Guru

Hi Ivan,

In the Recipient List, please select Method = Dynamic Condition  and select the 'Show script' checkbox. The format of the object returned by the script is described below (it requires sys_ids of the records in the sys_user table in case of Internal Users).

//(function() { 
    //This script is used to upload recipients to the recipients list based on type chosen 
    //Example: 
    //Script should have the type as the 'key' and array of sys_ids corresponding to the type as the values. 
    //internal => sys_user 
    //var obj = {'internal' : ['sysId1','sysId2','sysId3']}; 
    //return obj; 
    //})();

 

More details can be found under LINK

 

Best Regards,

Marcin

 

If my answer helped you in any way, please mark this answer as helpful and correct.