cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Unbihexium
Helper III
Helper III

Delete a specific file from sharepoint

Hi guys

I want to delete a specific file in a SharePoint library with a button.

The document can be identified with a unique file name which is a combination of two attributes from powerapps.
The library has a subfolder were all documents are stored...: 'EuFnA - Bibliothek\EuFnA 2022' (don't know if this is relevant)
Library = EuFnA - Bibliothek
Folder = EuFnA 2022

 

I am having trouble finding the correct syntax...
On the "OnSelect" button I have tried with the following;

 

EuFnA_DeleteGenFiles.Run(
    Tickets.Selected.ID;
     LookUp('EuFnA - Bibliothek';
        ThisItem.Auftrag_x0020_ID & "_" & ThisItem.Bezeichnung & ".pdf" &&
        ThisItem.Auftrag_x0020_ID & "_" & ThisItem.Bezeichnung & ".docx").ID
) ;; 

 

I get the following error with this;
Invalid number of arguments; Received 2, expected 1

Unbihexium_1-1637744708791.png

 

 

The Flow behind is very simple (screenshot)

Unbihexium_0-1637744536047.png

 

Can someone help me with the correct syntax for this.. or is this maybe not possible that way?

 

Thanks in advance
regards

0 REPLIES 0

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Power Apps Community Call Jan. 2022 768x460.png

Power Apps Community Call

Please join us on Wednesday, January 19th, at 8a PDT. Come and learn from our amazing speakers!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Top Solution Authors
Top Kudoed Authors
Users online (1,668)