I’d like to attach a file to a sequence where the folder location and file name change based on the day. The goal is to grab yesterday’s file which is saved in yesterday’s folder. The file path will look like this:
FilePath\YYYY\MM\DD\FilenameYYYYMMDD.xlsx
I tried the below but get an error saying file path not found.
Hi @NIVED_NAMBIAR - thanks for getting back but unfortunately it still isnt working. I even tried using the following to test it and I still got the error.
Hi @Shubham_Varshney - thank you for your response. Does attaching a file save the file? I am not trying to save - simply grab a pre-existing document and attach it to an email and send.
If creating a path exist will help, do you have a walkthrough of what that would look like?
This was actually the solution. When you put the code the "\" did not go through, but it worked. Issues with my original code were capital YYYY for year and forgetting to put a "\" before the file name. Thank you!