how can I select a group name to send email in flow designer ?

chandan29
Kilo Contributor

I am working on FieldGlass integration. I want to send a email to a group, for some condition.But could not understand how can I get that group here, how ever there is no option to select group from group table table.

Can anyone guide me how can I find/select that group ?

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

Flow doesn't support setting static user/group in Send email

2 ways

1) script

did you try to use f(x) script and return sys_id of group?

return 'groupSysId';

find_real_file.png

OR

2) use Lookup record on group table and then select the group via data pill

find_real_file.png

find_real_file.png

find_real_file.png

Regards
Ankur

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

View solution in original post

3 REPLIES 3

OlaN
Giga Sage
Giga Sage

Hi,

Flow designer expects an email formatted string as input to the Send email action.

So if you have a mail address as an attribute on group, select that field and record to mail to.

See example:

find_real_file.png

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

Flow doesn't support setting static user/group in Send email

2 ways

1) script

did you try to use f(x) script and return sys_id of group?

return 'groupSysId';

find_real_file.png

OR

2) use Lookup record on group table and then select the group via data pill

find_real_file.png

find_real_file.png

find_real_file.png

Regards
Ankur

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

Curt4
Tera Contributor

You can just put the SYS_ID of the group in the TO: field and then it will lookup everyone in that group and send the email to each person without doing a lookup.

Curt4_0-1727217666923.png