Move files in folder

Can someone help me with this please,

I will be downloading attachments and moving these attachments to a new folder. I need two criterias: File name needs to have the name Coupa, and the file needs to be created today. This is what I have but it is not working.
If condition:
CurrentFile.CreatedDate() = DateTime.Today.ToString(“d/MM/yyyy*”)

image

Hi @NathaliaFawcett
for the date you can use with these syntax Now.Tostring(“dd/MM/yyyy”) based on receiving you input file format.

seems your output comes with timestamp

hope this helps!!!

Hi Baskar,

Sorry, I don’t think I completely understand. This is my first automation.

can you share the workflow here if possible. will review and let you know.

@NathaliaFawcett

Try like this in if condition

CurrentFile.CreationTime.ToString("dd/MM/yyyy").Equals(Now.toString("dd/MM/yyyy"))

cheers

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.