Sharepoint - Folder - delete yesteday's file upload today's file

in share point application i have a folder with output file in a folder. if the file is with yesterdays date i need to delete and upload todays report if the output file is todays report i need to do nothing in UiPath.

i am using ui Activities not API.

Customer Calibration bot Summary is the folder.

Please help me with some solution

Thanks in Advance

Thanks

1 Like

Well api would make your task a lot easier but if you cannot use integration service it and have to depend on uiautomation then.

  1. Use a get text to get the name of the file if its present within the name or get text of the date column.

  2. Depending on your criteria delete file or upload a new file this would be inside an IF condition. You would have to use click activities with appropriate selectors.

I would still reiterate integration service would make your task easier

Add UiPath.Sharepointteam package to your project. You need to also download the documentation so that you will understand how to use it.
Play around the activities there. You will be able to get what you want done.