cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
xxxxmints
Helper IV
Helper IV

Populate spreadsheet in a folder when document uploaded to a folder in a sharepoint library

Hello

This may be too hard.

 

  • I have a flow (manual trigger) that creates a folder and 4 subfolders in a SharePoint library. 
  • The two that I need assistance are: one called 'Comms' and the other called 'Internal consultation'.
  • In the 'Comms' folder, the flow creates an excel spreadsheet from a template library. The other subfolder is called
  • In the 'Internal consultation' folder, I manually create subfolders on an as required basis (eg. Folder 1, Folder 2 and Folder 3). People across our organisation will be uploading documents into one of these subfolders, as directed.

My questions:

  1. Is it possible for power automate to recognise when someone uploads a document/s into one of the subfolders (Folder 1, 2 or 3)? 
  2. Is it possible to copy the name of the document that has been uploaded into one of the subfolders and populate the excel spreadsheet in the Comms folder?

Here is my flow so far.

Thanks in advance 🙂


2021-11-09 12_24_04-Edit your flow _ Power Automate.png

1 ACCEPTED SOLUTION

Accepted Solutions
v-LilyW-msft
Community Support
Community Support

Hi @xxxxmints 

Do you want to save the file name which is upload in the subfolder of 'Internal consultation' folder into the excel in Comms folder. If any misunderstanding, please kindly let me know.

I set up a flow, you can refer to the screenshots below to see if it helps.

Here are my two folders.

vLilyWmsft_0-1636700246170.png

Excel with a table is stored in Comms folder and there are 4 subfolders in Internal consultation folder.

vLilyWmsft_2-1636700398511.pngvLilyWmsft_1-1636700291268.png

Flow in details:

vLilyWmsft_3-1636700491973.png

vLilyWmsft_4-1636700512640.png

Expression:

length(split(outputs('Compose'),'/'))
When it is equal to 4, it means that it is a file upload in the subfolder.
If you still have subfolders in your subfolders, and you also need to record the file name, you can change 'is equal to' to 'is greater than or equal to'.

vLilyWmsft_5-1636700576491.png

When a new email is upload in subfolder, the file name will be added in excel.

vLilyWmsft_6-1636700682629.pngvLilyWmsft_7-1636700761997.png

Hope the content above may help you.

Best Regards

If my solution helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-LilyW-msft
Community Support
Community Support

Hi @xxxxmints 

Do you want to save the file name which is upload in the subfolder of 'Internal consultation' folder into the excel in Comms folder. If any misunderstanding, please kindly let me know.

I set up a flow, you can refer to the screenshots below to see if it helps.

Here are my two folders.

vLilyWmsft_0-1636700246170.png

Excel with a table is stored in Comms folder and there are 4 subfolders in Internal consultation folder.

vLilyWmsft_2-1636700398511.pngvLilyWmsft_1-1636700291268.png

Flow in details:

vLilyWmsft_3-1636700491973.png

vLilyWmsft_4-1636700512640.png

Expression:

length(split(outputs('Compose'),'/'))
When it is equal to 4, it means that it is a file upload in the subfolder.
If you still have subfolders in your subfolders, and you also need to record the file name, you can change 'is equal to' to 'is greater than or equal to'.

vLilyWmsft_5-1636700576491.png

When a new email is upload in subfolder, the file name will be added in excel.

vLilyWmsft_6-1636700682629.pngvLilyWmsft_7-1636700761997.png

Hope the content above may help you.

Best Regards

If my solution helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
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.

Power automate tips 768x460 v2.png

Restore a Deleted Flow

Did you know that you could restore a deleted flow? Check out this helpful article.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Users online (2,813)