Hello everyone,
I am new to PowerAutomate, I hope I describe my question clear.
I have about 20 Teams like this:
Team | |
CompanyA | team1@mail.com |
CompanyAB | team1@mail.com |
CompanyC | team2@mail.com |
Depending on the users company fielt of AzureAD I want to send a notification to the proper team.
I am looking for something like:
- if users company contains "CompanyA" then "team1@mail.com" and so on...
I (successfully) made a flow with conditions but I guess having 20 if then queries is not the useful way and managing is a real pain.
Do you have an advice for me?
Thanks in advance for your thoughts.
Hi @Anonymous
You will have to store the company and emails data somewhere like SharePoint or statically in the flow.
I'm using a static list in a flow
@{first(body('Filter_array'))?['Email']}
There you have the email and no if conditions
Hope this helps
If so, consider marking this post as solved
WarrenBelz
146,524
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,906
Most Valuable Professional