HI
my situation is that i want delete all the file that are in a folder, that folder is in a library.
we receive up to 13 file in a day by Email. I've create a flow that transfert all those file from outlook to a sharepoint in a library.
I may receive the last file of the day an hours before the day finish, but i still want that file to be deleted at the end of the day so the next day we can start all over.
so this flow has to be execute at the same time each day so i know i have to first put the recurrence but after that i don't know how to get all those file and deleted those file at the time of the execution of the flow
I don't want to delete the folder because the same folder will be use the next day
is it possible?
Solved! Go to Solution.
Hi @Anonymous,
Does your folder of SharePoint library includes sub-folders?
I assume that your SharePoint library folder doesn't include sub-folders, I have made a test on my side and please take a try with the following workaround:
@equals(item()?['{Path}'], 'Reporting/FlowTest/')
Note: The Reporting represents SharePoint library name, the FlowTest represents the folder name in the SharePoint library.
item()?['{Identifier}']
Image reference:
The flow works successfully as below:
Best regards,
Kris
Hi @Anonymous,
Does your folder of SharePoint library includes sub-folders?
I assume that your SharePoint library folder doesn't include sub-folders, I have made a test on my side and please take a try with the following workaround:
@equals(item()?['{Path}'], 'Reporting/FlowTest/')
Note: The Reporting represents SharePoint library name, the FlowTest represents the folder name in the SharePoint library.
item()?['{Identifier}']
Image reference:
The flow works successfully as below:
Best regards,
Kris
Hi @v-xida-msft,
yes the sharepoint has a sub folder, all the file we receive are send in the sub-folder of the library.
does this solution that you just gave will work even in a sub folder?
Thank you so much for the info if i didn't had a sub folder
Hi @Anonymous,
If the folder of your SharePoint library has a sub-folder, I think the solution I provided could also achieve your needs. I assume that the Reporting is your SharePoint library name and the FlowTest is a folder of the Reporting library. In addition, the FlowTest folder has a sub-folder called Subfolder1.
Please take a try with the above solution that I provided, within "Filter array" action, click "Edit in advanced mode", modify the formula as below:
@equals(item()?['{Path}'], 'Reporting/FlowTest/Subfolder1')
Best regards,
Kris
Hi @v-xida-msft,
I'm sorry for this late respond.
the flow that you gave me work perfectly !!
Thank you so much.
is I have some more question for you is there a way that I can keep contact with you?
Hello,
In my case the result of test for "Apply to Each" not work - "the input arrey was empty". Why?
I just made more tests and for path in Filter Array = Departamental/Comum/Teste , it doesnt works, but one leve upper this works 'Departamental/Comum' is this a limitation? Can I work arroud to it?
Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.
Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!
User | Count |
---|---|
8 | |
5 | |
4 | |
2 | |
1 |