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

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

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Upcoming Events

Experience what’s next for Power Automate

See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Top Solution Authors
Top Kudoed Authors
Users online (6,933)