Hi,
I have an export from another system being emailed as a .csv file to a document library. I then have a scheduled task which imports the contents of that .csv into a sharepoint list. That's all working fine.
However, the script is obviously specifying the filename in the library. The export from the other system cannot give the export the same name every time it runs. So the file is hitting my library with a different name each time. I am hoping to completely automate this to reduce manual work.
So, I need to rename the file as it hits the library and delete all previous instances. At the moment, I just used the below:
Delete Item Item in List
then Set Name to "Export"
But I am getting an error when it tries to delete the previous entry which will always have the same name assuming that it works. Ideally, it would be great if I can just rename it and the previous one will be overwritten but that doesn't seem to work.
I have probably made no sense. HELP!