
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!
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.