Hi, all. I need to check for files created on today’s date. If the file is available, I need to send an email otherwise end the process. I was testing using a log message to see if it worked, however, despite me having a file that was modified today, it is saying no match. What am I doing wrong? Kindly advise.
Regards
Anived
Lak_Ui
(Lakshmi)
June 9, 2022, 4:56am
2
Hi @Anived_Mishra
use writeline activity to print left and right side of the condition…there might be some format differences which is causing this issue
Instead of LastWriteTime
try giving FileInfo(x).CreationTime.Date
and check
Also give full path inside Directory.GetFiles(), if the file present inside Anived
folder give a /
after Anived
Hey, it still is a no-match message, unfortunately.
Is the file present inside the ‘Anived’ folder?
Hey @Lak_Ui , tried that. Same response: No match.
Lak_Ui
(Lakshmi)
June 9, 2022, 5:10am
9
Can you share the writeline results
sb001
June 9, 2022, 5:18am
11
Hey @Anived_Mishra
Find attached .xaml file for your ref.
Check File CreationDate.xaml (8.9 KB)
Hope it helps.
Regards,
Saloni
Lak_Ui
(Lakshmi)
June 9, 2022, 5:22am
12
i was asking you to print lastwritetime and datetime.today so that you can understand the format difference
system
(system)
Closed
June 12, 2022, 5:29am
15
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.