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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How to get the URL of ...
Power Automate
Answered

How to get the URL of desktop flow run

(0) ShareShare
ReportReport
Posted on by 33

I'm using Power Automate Flows to execute a desktop flow. I would like to send an email with the URL of the desktop flow run if it fails.

 

Using the function Workflow() I have successfully linked the desktop flow details with this URL: https://make.powerautomate.com/environments/[enviromentID]/uiflows/[desktopFlowID] 

Fx: concat('https://flow.microsoft.com/manage/environments/', workflow()?['tags']['environmentName'], '/uiflows/', '52e81c8e-8e7b-4a0b-a7e2-dfc8190c60f1')

 

The URL That I'm aiming for is composed of the specific run:

https://make.powerautomate.com/environments/[enviromentID]/uiflows/[desktopFlowID]/runs/[runID] 

 

And I do not know how to get the run ID of the desktop flow.

 

Thanks in advance,

 

Categories:
I have the same question (0)
  • Verified answer
    franco2 Profile Picture
    33 on at

    Ok I found the way to link the specific desktop run in automate flows.

    Is by using actions(). Once an action is successful (in this case our run desktop flow block) it stores in json format all the data related to that run. So here is where the desktop flow Id & desktop flow run Id can be found to ,compose the URL. 

     

    This is the final function:

    concat('https://make.powerautomate.com/environments/',workflow()?['tags']?['environmentName'],'/uiflows/',actions('DESKTOP_RUN_BLOCK')?['inputs']?['parameters']?['uiFlowId'],'/runs/',actions('DESKTOP_RUN_BLOCK')?['outputs']?['headers']?['x-ms-run-id'])

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 639

#2
Valantis Profile Picture

Valantis 392

#3
11manish Profile Picture

11manish 350

Last 30 days Overall leaderboard