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.
Will try this out and see let you know if it works. Thanks!
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.
David_MA
140
Super User 2025 Season 1
Michael E. Gernaey
138
Super User 2025 Season 1
stampcoin
129