Hi All,
I'm having trouble getting the IF condition to work in Power Automate Desktop. Attached the Flow Screenshot FYR .
Goal:
I want to check if a file in my Downloads folder contains both:
- A specific keyword: "InvoiceReconcileLogistics"
- Today's date in the format yyyyMMdd (e.g., 20250707)
If the file name matches both conditions (e.g., "InvoiceReconcileLogistics 20250707.xlsx"), I want to move it to a folder on to my Desktop folder called "Logistics" from Download Folder
I've tried using the If CurrentListItem.Name Contains ${FileName} and CurrentListItem.Name Contains ${CurrentDate} conditions, but it doesn't seem to trigger correctly. I've confirmed that the CurrentDate variable is being set in the yyyyMMdd format.
Question:
Is there something I may be missing in the way I’m structuring the condition? Is it better to use a single combined string or a different approach?
Any guidance or tips would be greatly appreciated!
Thanks in advance!