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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Dynamically generate t...
Power Automate
Answered

Dynamically generate the canvas app link from a workflow

(0) ShareShare
ReportReport
Posted on by 172
is there a way to generate the app link dynamically from the power apps to send it in an email. 
i am sending emails using workflow from the power apps but since i have dev and production app, is there a way to make it dynamic so that the link is generated depending on the environment.  
 
 
Categories:
I have the same question (0)
  • Verified answer
    vipuljain03 Profile Picture
    657 Super User 2025 Season 2 on at
    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
     

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…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard