cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Jenn_0014
Level: Powered On

Search and FInd Sharepoint Folder, then Move to another Location

Hi All, 

 

I hope someone can help.

 

I have my SharePoint connected to my Dynamics to create a folder when an Account becomes a Customer. This folder is created in a folder dependant on what type of service the customer is receiving. When a customer stops being a customer I want to move their folder to an archive. 

 

So, therefore, I have created:

A Trigger: When an Account is Updated - this works correctly

A Condition: is customer = False - the works correctly 

 

This is where I am stuck I need an action to search SharePoint for the folder with the 'Account Name'. I did try List folder however this wants a specific Item ID. I need it to search all of my Sharepoint Folders and return the folder with the correct Account Name. 

 

Does anyone have any ideas? 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User
Super User

Re: Search and FInd Sharepoint Folder, then Move to another Location

Hey @Jenn_0014 

This example Flow segment should have you covered:

1.png

 The filter query on the 'Get files (properties only)' action is: FileLeafRef eq '<variable/>'

You simply need to pass in the Folder name.

HTH

Jay

-------------------------------------------------------------------------

If I have answered your question, please mark your post as Solved.

If you like my response, please give it a Thumbs Up.

View solution in original post

1 REPLY 1
Highlighted
Super User
Super User

Re: Search and FInd Sharepoint Folder, then Move to another Location

Hey @Jenn_0014 

This example Flow segment should have you covered:

1.png

 The filter query on the 'Get files (properties only)' action is: FileLeafRef eq '<variable/>'

You simply need to pass in the Folder name.

HTH

Jay

-------------------------------------------------------------------------

If I have answered your question, please mark your post as Solved.

If you like my response, please give it a Thumbs Up.

View solution in original post

Helpful resources

Announcements
firstImage

Power Platform Online Conference

Speakers, submit your sessions now! Call for speakers ends Feb. 10!

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!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Solution Authors
Top Kudoed Authors (Last 30 Days)
Users online (5,470)