cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Michal
Kudo Collector
Kudo Collector

Can we make SharePoint "For selected file" trigger site-independent?

Hi, 

Just started to use the Power Automate from within the SharePoint document library and I can see that it refers to a specific site and document.

I would like to make the flow reusable across all tenant and all sites (i.e. when it is needed, create a button that will trigger the specific flow)

So, can we make SharePoint "For selected file" trigger site-independent?

1 ACCEPTED SOLUTION

Accepted Solutions
Pstork1
Dual Super User
Dual Super User

Since the trigger requires specifying the site and specific Library in order to work, no it can't be made site independent.  You can do a Save As and modify the copies to work with different libraries in different sites.  But there is no way to connect the same flow to multiple libraries at the same time.



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

Join me at 365EduCon in Chicago on Sept. 26-30 where I'll be presenting on the Power Platform!

View solution in original post

4 REPLIES 4
Pstork1
Dual Super User
Dual Super User

Since the trigger requires specifying the site and specific Library in order to work, no it can't be made site independent.  You can do a Save As and modify the copies to work with different libraries in different sites.  But there is no way to connect the same flow to multiple libraries at the same time.



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

Join me at 365EduCon in Chicago on Sept. 26-30 where I'll be presenting on the Power Platform!

Thank you @Pstork1 

I am struggling with SharePoint's "Get file content" action inside of a "For selected file" flow.

Maybe you know a way how to get the info that is needed for the "Get file content" action, so I can save the file to the OneDrive?

This should work for any selected file in a given document library.

 

I have already extracted the "Site address" from the  "For selected file" trigger as below. 

 

split(triggerBody()?['entity']?['itemUrl'], '/_layouts/')[0]

But cannot find the way to build a proper "File Identifier". 

Any tips?

 

Pstork1
Dual Super User
Dual Super User

The trigger gives you the item ID for the file.  You can use that in the Get File Properties to get more info, including the file identifier.

image.png



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

Join me at 365EduCon in Chicago on Sept. 26-30 where I'll be presenting on the Power Platform!

Thank you @Pstork1 

I was trying to make it overcomplicated. It worked perfectly. 

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.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (3,289)