Hi, I am trying to delete files from SharePoint, the process I am using it runs and deletes files but after all files are deleted I am getting a failed message. After the delete I will create new file from outlook attachment but with the fail no additional steps will go forward.
Solved! Go to Solution.
Thanks for your reply. You mentioned it runs and delete files but I can see it's failed inside the loop. Are you sure its deleting the files? How you mapping the Delete File step? Are you passing the file id?
Also for deleting the files you need the identifier? To get the file identifier you need to add Get File Properties action step. This returns the file identifier. Using the Id you should be able to delete the files.
Here are the steps:
in the file identifier / List folder step I input the folder name where the file is located, should i make another step to get Files Properties? Also i did check and the files are removed from the folder. on the screenshot below I did it with 4 files.
So why you getting the last error then? Check the run history and compare with List Folder returned data set. It could be something else causing this. Check the List Folder data and its types? Is that all returned the files only. Is contains another folder or something ?
All files in the folder are the same "blank .xlsx" files created in the folder directly from excel online. I do not know how to compare history and with List Folder returned data set. There is no 2nd folder inside this one.
Check out the News & Announcements to learn more.
Check out the new Power Platform Community Connections gallery!
Congratulations, the new Super User Season 2 for 2021 has started!
Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.