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

Announcements

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 237 Super User 2026 Season 1

#2
David_MA Profile Picture

David_MA 176 Super User 2026 Season 1

#3
Power Platform 1919 Profile Picture

Power Platform 1919 96 Super User 2026 Season 1

Last 30 days Overall leaderboard