cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ASandeep
Frequent Visitor

How to handle dynamic file path using wild cards

Hi, I have to check if a file is present in a folder. The format of the file name is "Broadband prevet dd-mm-yyyy.xlsx". The date is dynamic here. Can anyone please help how to handle this dynamic date as it would be changing. Iam using Broadband prevet *.xlsx. But it is not working.  I want to achieve this on power automate desktop. 

1 REPLY 1
burque505
Helper V
Helper V

This is limited to your specific use case as stated. It will only work if the files you're looking for are strictly in that format. The message displayed at the end shows how it will fail if a file has the same prefix but extra characters after that.

flow.PNG

(There's a space after "Broadband prevet ", like that without the quotes.)

save variable.PNG

get files.PNG

Files for test:

files in folder.PNG

Message:

message-1.PNG

 

However, this method will eliminate the 'guinea pig' file displayed above:

get_2.PNG

This will work for your case also, but isn't as flexible.

 

get_3.PNG

Helpful resources

Announcements
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

Users online (24,001)