how do i pass multiple recipients for parm1 in sysevents table in flow designer

Ansuha Chipuri
Kilo Guru

Hi,

I have a flow where it create a events, in the field param1 how can i pass multiple recipients 

find_real_file.png

if i just drags the data from pannel and activate the flow in the eventlog it is taking both the recipients sysid as one and the notification is not trigerring.

can some one suggest me a solution so that it takes two recipients without using param2

 

1 ACCEPTED SOLUTION

@Ansuha Chipuri

please use this and it should help you

you need to use script section to set the comma separated values

Click the fx icon and add this script

var str = fd_data.trigger.current.task.assigned_to.manager.toString() + ',' + fd_data.trigger.current.task.opened_by.toString();
return str;

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

15 REPLIES 15

asifnoor
Kilo Patron

Hi,

As per the screenshot, i see there is only 1 user that exists in param1. Did you drag the other user into parm1?

can you also share the event log once to understand the issue. ARe you saying there is no comma between both users?

 

yea, there is no comma between two users in the log it is taking as single string

 1. the above sceenshot hasonly one recipient then the event log is and notification working fine

find_real_file.png

2. if the flow has two recipients  then the event log is as below , notification not working bcz users are not identified

find_real_file.png

 

Hi,

As per your flow screenshot you are setting event parm1 as Assigned To -> Manager

So it will have only 1 sys_id

I didn't get how it would have 2 sys_ids

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

hi ankur,

for that two sysids i have added second recipient two to the param 1 field in flow but i have not shared the screenshot. below is the onefind_real_file.png