web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / send notification to s...
Power Automate
Unanswered

send notification to specific team depending on company field of a user

(0) ShareShare
ReportReport
Posted on by

Hello everyone,

 

I am new to PowerAutomate, I hope I describe my question clear. 

 

I have about 20 Teams like this:

 

TeamMail
CompanyAteam1@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.

 

 

 

 

 

 

Categories:
I have the same question (0)
  • iltoningui Profile Picture
    247 on at

    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

     

    iltoningui_2-1638816258623.png

    iltoningui_1-1638816149518.png

     

    1. I'm Creating a company field, similar to the information you would find in the user Company field.
    2. I'm creating a JSON List to store a list of object with Company and Email field, similar to what a SharePoint or other list
    3. Filter the list by CompanyA this will return a list with one element.
    4. Get the Email of the first object returned from the filter array action.
    @{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

     

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard