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

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
    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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 497 Moderator

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 477 Super User 2025 Season 2

#3
chiaraalina Profile Picture

chiaraalina 242

Last 30 days Overall leaderboard