Step 1: Get the App ID from Power Apps Studio (Click the three dots (⋮) next to the app name -> Click Details -> Copy the App ID from the "App ID" field)
Step 2: You can Construct the App URL Dynamically in Power Automate:
Power Apps follow this URL format: https://apps.powerapps.com/play/{AppID}?tenantId={TenantID}
AppID is unique as per the environment, TenantID remains the same.
a) Retrieve the current environment dynamically using workflow()?['tags']['environmentName']. This fetches the environment name where the flow is running
b) Use a Switch condition: Compare the output of workflow()?['tags']['environmentName']
c) Store the URL in a variable
d) Use the dynamically generated link (variable) in your Send Email action.
--------------------------------------------------------------
If this reply helped you, please mark this reply as suggested answer ✔️ and give it a like to help others in the community find the answer too!
Thanks, Vipul