cancel
Showing results for 
Search instead for 
Did you mean: 

Checking if SharePoint file exists or Create with Overwrite flag

I'd create a file with particular name or update it if such file exists already. Unfortunatelly I haven't found any way to check whether file exists or not, nor create it with ovewrite flag set to true.

Comments
Level: Power Up

I'm surprised this hasn't been upvoted more. Is there a solution for this that I haven't found?

Level: Power Up

Need same functionality for Items in SharePoint list.

Level: Powered On

Same here, today workaround is to use getitems with OData filter and then use check with formula empty(body('get_items')?['value']). One caveeat is that Get items action has to timeout after 4 attempts to continue checking.

 

Alternative is to get all items and filter them or check if item exists.

 

Check https://powerusers.microsoft.com/t5/Building-Flows/Is-there-an-Exists-for-single-item-from-a-list-ac...

Super User

I've implemented a file exist as a workaround using the get file content by path action. And then make the next step just run on failure of this check. I will create a blog post on this.

 

Level 8

Lets not forget folders. I know folders are 'old school' and unpopular these days, but they still have a use out here in the real world. I looked at my Windows directory the other day, theres fricken folders everywhere!

>