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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Select File from Get F...
Power Automate
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!!!

Categories:
I have the same question (0)
  • Verified answer
    v-yueyun-msft Profile Picture
    Microsoft Employee on at

    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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 957

#2
Valantis Profile Picture

Valantis 847

#3
Haque Profile Picture

Haque 609

Last 30 days Overall leaderboard