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

Announcements

News and Announcements icon
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 Microsoft Employee

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 550

#2
Valantis Profile Picture

Valantis 390

#3
11manish Profile Picture

11manish 348

Last 30 days Overall leaderboard