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

Re: HTTP request to SharePoint API

 

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
Highlighted
Super User III
Super User III

Re: HTTP request to SharePoint API

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

Re: HTTP request to SharePoint API

 

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

Highlighted
Frequent Visitor

Re: HTTP request to SharePoint API

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

Community Conference

Power Platform Community Conference

Find your favorite faces from the community presenting at the Power Platform Community Conference!

Top Solution Authors
Top Kudoed Authors
Users online (7,916)