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

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 Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Users online (1,659)