cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
makp
Level: Powered On

SharePoint Delete file, File identifier from a list

 

Hi,

 

I have a Flow which Create file in 3 different SharePoint location via metadata, when a file is created i also Create item in a list, on this list i have the File identifier stored.

 

I am know creating a Flow which is supposed to Delete file  - see below: 

 

Flow1.PNG

 

OrgID contains the File Identifier which is stored in a column, there is 3 conditions as i have 3 different destinationadress'.

 

Below is output from a run:

 

Flow.PNG

 

Body message

 
  "error": {
    "code"404,
    "source""europe-001.azure-apim.net",
    "clientRequestId""ef304424-2e36-4833-831d-b4caa7f7b8a1",
    "message""The response is not in a JSON format.",
    "innerError""The resource you are looking for has been removed, had its name changed, or is temporarily unavailable."
 

 As per other posts i can se the issue could be "string" vs "uri", but how can i do that?

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
makp
Level: Powered On

Re: SharePoint Delete file, File identifier from a list

Found another solution or workaround.

 

I used "Send an HTTP request to SharePoint" with method DELETE:

 

Flow.PNG

 

 

 

4 REPLIES 4
buildbod
Level: Powered On

Re: SharePoint Delete file, File identifier from a list

I think you should be treating the files as items in a List calling the ID of the file and not the OrgID.

 

create delete workaround.png

makp
Level: Powered On

Re: SharePoint Delete file, File identifier from a list

I dont think that will help in my solution.

 

Workflow1

Create file based on querying the reason is the file can be created in 3 different folders or all

Create item based on properties from the file in "Mainlist"

 

Workflow2

Delete file based on "Mainlist".

 

As from another post it seems to be format problem string vs. uri.

Highlighted
makp
Level: Powered On

Re: SharePoint Delete file, File identifier from a list

Found another solution or workaround.

 

I used "Send an HTTP request to SharePoint" with method DELETE:

 

Flow.PNG

 

 

 

Santosh101
Level: Powered On

Re: SharePoint Delete file, File identifier from a list

Thank you.

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020

thirdimage

Flow Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 114 members 4,847 guests
Please welcome our newest community members: