web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Select File from Get Files (Properties Only)

(0) ShareShare
ReportReport
Posted on by

Hello, very new with Power Automate and this is only my second flow.  

 

I create, through another flow, a new file each business day, Monday - Friday, that starts with MM-dd-yyyy in sharepoint Shared Documents/General folder.

This means that business yesterday file is also out there and I want to find it and move it the Archive folder under the General folder.

 

I have three variables:

1 - DayofWeek - dayOfWeek(utcNow())

2 - NotMonday - formatDateTime(addDays(utcNow(), -1),'MM-dd-yyyy')

3 - IsMonday - formatDateTime(addDays(utcNow(), -3),'MM-dd-yyyy')

 

My condition looks at the dayOfWeek variable is equal to '1' which would be Monday

chrisvolpe_0-1701544658236.png

If this is true I branch and set the variable NotMonday

 

then Get Files (Properties Only)

chrisvolpe_2-1701544911053.png

Then I have a Move File taking the Name from the get Get Files (properties only)

chrisvolpe_3-1701545011322.png

I get 'BDRequest' on the Get File step.  Any idea, thanks so much!!!

I have the same question (0)
  • Verified answer
    v-yueyun-msft Profile Picture
    on at
    Re: Select File from Get Files (Properties Only)

    Hi , @chrisvolpe 

    If you want to filter the filename with startwith() function in Get files action in Power Automate , you need to use code :

    startswith(FileLeafRef,'Data')

    You can replace the 'Data' to your IsMonday to check if it can run scuessfully.

    For more information, you can refer to :
    Solved: startswith(FileLeafRef,'XXX') finds nothing - Power Platform Community (microsoft.com)

     

    Best Regards,

    Yueyun Zhang

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 691 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 431 Moderator

#3
developerAJ Profile Picture

developerAJ 266

Last 30 days Overall leaderboard