cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
XAEA12
Frequent Visitor

HTTP request to SharePoint API

hi, 

 

I have a simple flow which sends a HTTP request to a SharePoint library to create a folder it uses the following settings: 

 

Capture.PNG

what is the default behavior in case the folder already exists there? from what I see, if the folder is there (same name, same path) it will not override it, any idea how I can change this?

1 ACCEPTED SOLUTION

Accepted Solutions
v-bacao-msft
Community Support
Community Support

 

Hi @XAEA12 ,

 

I did a similar test using Create new folder on my side. I am afraid that using the SharePoint Rest API to create a folder cannot override a folder with the same name.

 

Please consider whether the folder with the same name already exists before creating the folder, and add an appropriate suffix if it exists.

 

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.

View solution in original post

3 REPLIES 3
ChristianAbata
Community Champion
Community Champion

hi@XAEA12  what you can do is create an autoincremental variable to add it into your path like your Name Folder so then you are not doing to get errors with a folder with the same name,



Did I answer your question? Please consider to Mark
my post as a solution! to guide others :winking_face:

Proud to be a Flownaut!


If you want you can follow me at www.christianabata.com Quieres contenido en español? Síguenos en Power Automate LA
v-bacao-msft
Community Support
Community Support

 

Hi @XAEA12 ,

 

I did a similar test using Create new folder on my side. I am afraid that using the SharePoint Rest API to create a folder cannot override a folder with the same name.

 

Please consider whether the folder with the same name already exists before creating the folder, and add an appropriate suffix if it exists.

 

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.

thanks for the confirmation! will use something different then, but this particular api might come in handy in the future 😉

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Top Solution Authors
Users online (4,164)