cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
HelgeNorvang
Advocate III
Advocate III

Get URL of running Flow instance

Hi, I have a Flow running on a document library (trigger: When a file is added or modified (properties only)).

Now, I need/want to get the URL of the current running Flow instance (and write it to a field of the current document/item).

 

Is it even possible to get this URL? If so, how?

 

Any help would be highly appreciated!

1 ACCEPTED SOLUTION

Accepted Solutions

HI @HelgeNorvang,

 

Yes this is possible. You can use the workflow  expression.

 

https://veenstra.me.uk/2018/06/19/microsoft-flow-which-flow-ran-on-my-item/

 

View solution in original post

7 REPLIES 7

HI @HelgeNorvang,

 

Yes this is possible. You can use the workflow  expression.

 

https://veenstra.me.uk/2018/06/19/microsoft-flow-which-flow-ran-on-my-item/

 

GabrielStJohn
Community Champion
Community Champion

Hello, @HelgeNorvang!

 

Thank you for posting on the Flow Community Forum! Have you had an opportunity to apply @Pieter_Veenstra‘s recommendation to adapt your Flow? If yes, and you find that solution to be satisfactory, please go ahead and click “Accept as Solution” so that this thread will be marked for other users to easily identify!


Thank you for being an active member of the Flow Community!

 

-Gabriel
Flow Community Manager

- Gabriel
Community Manager
Power Automate | Power Virtual Agents
Super User Program Manager



I'm keeping it open for now. I haven't had the chance to test it yet.

@Pieter_Veenstra 

You saved my day. You are Flow magician!!

P.

ParkerBeck
Frequent Visitor

Here's the naked expression.

concat('https://us.flow.microsoft.com/manage/environments/',workflow().tags.environmentName,'/flows/',workflow().name,'/runs/',workflow().run.name)

 

Eyfa
Helper I
Helper I

can it be applied to different flow?

I want to get the URL for the instant flow that I newly build and insert it in the original flow.

my purpose is to send the email with the URL, so that user can just click it to trigger the instant flow

Hello Pieter,


I want to invoke an instant cloud flow by opening its URL, AND pass a URL parameter for use in the flow. Workflow() doesn't seem to recognize user-added URL parameters. 

Do you know of a way get user-added URL parameters of a flow's own URL? For example [flow instance address]&user=Socrates1000.

Thanks in advance. 

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (4,570)