
Hi,
is there a way to store Dynamic Variables inside of Text Enviroment Variables that they are resolved during runtime?
Example a E-Mail Body that should changed in Format in every Environment.
Text for a Email needs Placeholders:
Hi (Manager),
this is the Approval Request for (DisplayName).
@{outputs('Get_user_profile_(V2)')?['body/displayName']} is not resolved when its part of the Environment Variable.
Any Ideas how to solve this?
In Power Automate, you cannot directly use dynamic content or expressions within environment variables. Environment variables are static and don't support dynamic resolution during runtime.
However, you can achieve similar functionality by using expressions within your flow actions directly, rather than trying to store dynamic content within environment variables.
For your example of an email body with placeholders, you can use expressions directly within the "Send an email" action to dynamically construct the email body using data from previous steps.