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

Thats really strange. Try adding comma manually between 2 users and check once.

it seperated the users when comma is added but the notification is not triggering

Great. now check if the event is processed. If yes, then go to system logs and check if the notification is triggered or is there any error. 

Also confirm if your notification is listening to that event or not.

@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

@Ansuha Chipuri 

Hope you are doing good.

Did my reply answer your question?

If my response helped you please mark it correct to close the question so that it benefits future readers as well.

Regards
Ankur

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