
Hi,
I have table(User Management) in Dataverse like below.
Now i Need to get these users in "To" based on Role to send notification.
I am creating notification flows and in that I need to get Role specific users in "To" section of send email.
I want to use only If users Role is "Admin" and "IS" that needs to get and define in "To" section for particular flow and in other flow I need use RS and TS user role users. Like this way I need to define role based users in "To" for different flows.
Can you please let me know how to get.
Hi @Anonymous ,
You could try to use filter array action in flow.
I made a sample for you .
[
{"Name":"Name1","Email":"Name1@test.com","Role":"Admin"},
{"Name":"Name2","Email":"Name2@test.com","Role":"IS"},
{"Name":"Name3","Email":"Name3@test.com","Role":"RS"}
]@or(equals(item()?['Role'], 'Admin'),equals(item()?['Role'], 'IS'))
Best Regards,
Wearsky