cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Power Participant
Power Participant

Manually trigger a flow (Get the url from where the flow is triggerd)

Hi

I would like for the Manually trigger a flow to contain more dynamic content for example i would like to get the location of where the flow was triggered from.

 

If i do a Manually trigger a flow and then a compose, is there any expression i can use to get the url from where the flow was triggered from?

 

The flow is being triggerd from SharePoint list as a button and i would like to fetch the url for this. So if the user is in the mysite/lists/List1 and he/she triggers the flow from this list, i would like to collect the dynamic content so i can get the url that the user triggerd the flow from mysite/lists/List1

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Power Participant
Power Participant

Re: Manually trigger a flow (Get the url from where the flow is triggerd)

This now solved thanks to: https://veenstra.me.uk/2019/04/29/microsoft-flow-deploying-flows-to-all-your-project-sites-or-maybe-...

 

I can now have 1 flow that can run on multiple librarys and get the site address and listname dynamicly before i call the second flow.

View solution in original post

5 REPLIES 5
Highlighted
Super User II
Super User II

Re: Manually trigger a flow (Get the url from where the flow is triggerd)

Hi @JimmyWork ,

 

I'm afraid not. You only get in the Manual trigger the information of the person who triggered it and not "from" it was triggered. 

 

The only way I can see this working is with a "Request" trigger where you can provide a JSON with all the parameters you need. This trigger is, however, a Premium trigger.

 

If you have access to it, just parse the JSON file, and you'll get all the information you need. If you have questions on how to do this, please let me know, and I can help you.

 

I can't see another way but probably someone here can have another idea.

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Cheers
Manuel

Highlighted
Power Participant
Power Participant

Re: Manually trigger a flow (Get the url from where the flow is triggerd)

@manuelstgomes Thank you for answering, i have access to the Premium Http Request. But im not really sure how to use this and get the info.

 

In the end i want to get the select ed item id and url so i can past this to a second flow

Highlighted
Super User II
Super User II

Re: Manually trigger a flow (Get the url from where the flow is triggerd)

HI @JimmyWork ,

 

Awesome! Instead of explaining all here, here's an excellent article that has all the steps for what you need:

https://social.technet.microsoft.com/wiki/contents/articles/52544.sharepoint-online-trigger-a-micros...

 

You need to:

  1. Create the flow with the request trigger that accepts a specific JSON.
  2. In SharePoint, create a custom button that triggers an HTTP Request with all the information that you need to provide the flow.

 

I know it looks complicated but give it a go and if it doesn't work, let me know, and we'll figure this out together.

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Cheers
Manuel

 

Highlighted
Power Participant
Power Participant

Re: Manually trigger a flow (Get the url from where the flow is triggerd)

@manuelstgomes Thank you again but i dont think this will solve my issue. Because i can't provide the information in the Http Request.

 

I dont see the way for me to collect the needed information to pass to the next flow. I cant manully provide it in the json/body because this will be dynamic so it will change.

 

Im trying to achive is get a dynamic webURL that i can use in the next flow.

 

This is because i have a list template where i have a flow button thats linked to flow 1. 

Flow 1 starts with Manually trigger a flow. This means i can re-use this flow in all lists, because i dont want to create a flow for each list.

 

FLow 2 would need the site url and file and fileid to run, so i want to collect this when i press manully trrigger a flow.

Like this: https://veenstra.me.uk/2019/04/29/microsoft-flow-deploying-flows-to-all-your-project-sites-or-maybe-...

 

But im new to this and i dont really know how to do it, everything i send is blank from the Flow 1. SO how can i populate Flow 1 body/json before i send it to next flow?

Highlighted
Power Participant
Power Participant

Re: Manually trigger a flow (Get the url from where the flow is triggerd)

This now solved thanks to: https://veenstra.me.uk/2019/04/29/microsoft-flow-deploying-flows-to-all-your-project-sites-or-maybe-...

 

I can now have 1 flow that can run on multiple librarys and get the site address and listname dynamicly before i call the second flow.

View solution in original post

Helpful resources

Announcements
firstImage

Super User Program Update

Three Super User rank tiers have been launched!

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

firstImage

Join the new Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

Top Solution Authors
Top Kudoed Authors
Users online (11,364)