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 / 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

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 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard