cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted
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.
Highlighted
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

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

Microsoft Ignite 2020

Check out the announcement of Power Platform content at Microsoft Ignite!

thirdImage

Experience what's new for Power Automate

Join us for an in-depth look at the new Power Automate features and capabilities at the free Microsoft Business Applications Launch Event.

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (3,918)