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

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.

View solution in original post

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

Helpful resources

Announcements
MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MSFTBizAppsLaunchEvent

Experience what’s next for Power Virtual Agents

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

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Top Solution Authors
Top Kudoed Authors
Users online (96,376)