cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
EdwardC Helper III
Helper III

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
Community Support

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 Helper III
Helper III

Re: SharePoint HTTP Request - Folder

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

Here.png

Community Support
Community Support

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 Helper III
Helper III

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

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Automate Community!

firstImage

Now Live: 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!

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Users online (9,305)