cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

How to read file contents when file name is unknown

I am trying to create a flow that will read the contents of a text file when it is uploaded into a SharePoint online library.  Files are uploaded daily.  Although the format and content layout within the files are the same, the file name is not consistent.  How may Flow read the files content when the file name is unknown?  Please provide example. 

 

Thanks,

ARobinson15

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User
Super User

Re: How to read file contents when file name is unknown

Hi,

 

You need to use the trigger when file is created.

 

Then just get the file content and do whatever you need to it.

View solution in original post

2 REPLIES 2
Highlighted
Super User
Super User

Re: How to read file contents when file name is unknown

Hi,

 

You need to use the trigger when file is created.

 

Then just get the file content and do whatever you need to it.

View solution in original post

Highlighted
Frequent Visitor

Re: How to read file contents when file name is unknown

The trigger when file is created will not work as various files and file types are uploaded into the same SharePoint library.   And, I would prefer not to have 10 different document libraries to handle for each type of file.  Likewise, I do now want multiple flow failures when different types of files are uploaded.  Is it possible to use wildcards for the file name?  If so, please provide an example.

 

Thanks.

 

Helpful resources

Announcements
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 Kudoed Authors
Users online (11,695)