Skip to main content

Notifications

Community site session details

Community site session details

Session Id : pwEQfNX1N5LdCoxZ9Vps2H
Power Automate - Building Flows
Answered

Environmental variable array

Like (0) ShareShare
ReportReport
Posted on 20 Dec 2023 02:51:27 by 88

Hello!

I want to setup an email list that i could send automatic teams messages to throughout my environment(s).

 

I have something similar already setup in every PowerAutomate flow where I define the array in PowerAutomate it looks like this 

 

[
"John.Doe@company.com",
"Bradford.Meade@company.com",
"Wilhelmina.Slater@company.com"
]

 

But I want to have this setup as an environmental variable rather than an array in every flow. How should i set this up?

 

Side note. The reason I want this as an array is because I can only send 1 person a message on teams at a time so I could do an "apply to each" loop to iterate through everyone's emails to send them a message on teams. 

  • gabegap Profile Picture
    88 on 20 Dec 2023 at 19:13:51
    Re: Environmental variable array

    Will try this out and see let you know if it works. Thanks!

  • Verified answer
    Jcook Profile Picture
    7,770 Most Valuable Professional on 20 Dec 2023 at 05:12:51
    Re: Environmental variable array

    Hello @gabegap 
    You can use a M365 groups or Security groups. Use the Get group members action to get all members emails.

     

    You can have the environment variable The group ID.

     

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

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,670 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,004 Most Valuable Professional

Leaderboard