Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
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.

 

 

 

 

 

 

  • iltoningui Profile Picture
    247 on at
    Re: send notification to specific team depending on company field of a user

    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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,524 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,906 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow