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 / Manually trigger a flo...
Power Automate
Answered

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

(0) ShareShare
ReportReport
Posted on by 2,563

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

Categories:
I have the same question (1)
  • manuelstgomes Profile Picture
    6,625 on at

    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

  • JimmyW Profile Picture
    2,563 on at

    @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

  • manuelstgomes Profile Picture
    6,625 on at

    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-microsoft-flow-with-button-click.aspx

     

    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

     

  • JimmyW Profile Picture
    2,563 on at

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

     

    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?

  • Verified answer
    JimmyW Profile Picture
    2,563 on at

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

     

    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.

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