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 / Power Platform: Differ...
Power Automate
Unanswered

Power Platform: Different Email Recipients for Testing and Production Environments

(1) ShareShare
ReportReport
Posted on by 6

Hi everyone,

I'm currently working on implementing email actions in our Power Platform pipelines, and I have a question regarding email recipients.

During development and testing phases, I'd like to configure the email action to send notifications to my email address for testing purposes. However, once the solution is deployed to the production environment, I want the email action to send notifications to the appropriate recipients intended for production.

Is there a way to dynamically configure the email recipients based on the environment (e.g., dev/test vs. prod) in Power Platform pipelines? Or do we need to manually adjust the email recipients each time we deploy the solution to different environments?

Any insights or best practices on how to handle this scenario would be greatly appreciated.

Thank you!

Categories:
I have the same question (0)
  • DJ_Jamba Profile Picture
    2,837 Moderator on at

    Hi @Mohammed4 
    There's probably a better solution out there, but here here's what I do.
    I have a one column table in all environments called tbl_AppMode

    In the Dev environment, the value in the column is: dev

    Test: test

    Prod: prod

     

    I get the app to store that value into a global variable at startup. 


    Now I can create different behaviours in the same app based on that value, regardless of which environment I'm in.

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!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 283

#2
David_MA Profile Picture

David_MA 256 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 225 Most Valuable Professional

Last 30 days Overall leaderboard