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

SharePoint HTTP Request - Folder

Hi there,

 

Currently, I have a flow that creates SharePoint folders automatically on a timer and it works.. but the issue i'm having is if the folder already existed, the flow will get stuck on running and it doesn't move onto the action.

 

This is my flow:

Flow1.png

 

It would be stuck on creating new consultant folders since there is already folders (1st time it'll run successful but afterwards it'll get stuck). Now, I tried changing the timeout value of each action so if it already existed, after 1 minute it should timeout and hopefully move onto the next action, but that didn't work...

Flow2.png

 

Anyone know a way to either have the HTTP request to SharePoint set to skip if a folder with the name already existed or somehow make it time out after a minute so it can move onto the next action?

 

I basically want this flow to automatically create folders on a sharepoint site if there is new users added to a Azure group. 

 

Thanks!

4 REPLIES 4
Community Support Team
Community Support Team

Re: SharePoint HTTP Request - Folder

Hi @EdwardC ,

 

You could try setting Configure run after of the below action.

When the result of the execution of Create New Consultant Folders on Completed Folder is “is successful” and “has timed out”, the following actions are continued.

Image reference:

31.PNG

For more information on the use of Configure run after, please refer to Blog:

https://flow.microsoft.com/en-us/blog/error-handling/

Please take a try.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
EdwardC
Level: Powered On

Re: SharePoint HTTP Request - Folder

Unfortunately, I can't configure run after since the action is within a loop:

Here.png

Community Support Team
Community Support Team

Re: SharePoint HTTP Request - Folder

Hi @EdwardC ,

 

Sorry I ignored this point. If this is the case, you could try to check if the corresponding Folder already has the same name as the Group Member Display Name before each execution of create folder action.

 

If there is, then do not execute create folder action, and execute the next action.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
EdwardC
Level: Powered On

Re: SharePoint HTTP Request - Folder

Do you mind providing an example?

 

I tried doing multiple conditions but it's not working the way I want it to be.

Here.png

 

Description:

It compares to see if a folder has already been created for each of the group members by using List of Folders and checking if the name is in the path.

 

But I get emails for both.. even though the folder does exist in the Library

Helpful resources

Announcements
firstImage

Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!

firstImage

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

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!

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
Users online (5,020)