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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Need help for Get file...
Power Automate
Answered

Need help for Get files (properties only) Filter Query with two conditions

(1) ShareShare
ReportReport
Posted on by 22

Hello!

I am trying to add a second condition to the Filter Query on a Get Files (properties Only) flow. I've tried using "and" in the formula based on other examples in this community, and no combination seems to work. I've tried adding conditions and other types of steps with no success. My current formula that works and provides all data is: 
Modified gt '@{formatDateTime(adddays(utcNow(),-7),'yyyy-MM-dd')}'


I would like to add that the ImageTags field contains "academy"
Please help if you can. Here is a screen shot of my current flow. Thank you!
GetFilesFilterQueryHTMLTable.png

 

Categories:
I have the same question (0)
  • abm abm Profile Picture
    32,865 Most Valuable Professional on at

    Hi @DonnaW 

     

    Did you tried 

     

    substringof('academy',ImageTags)

     

    Thanks

  • DonnaW Profile Picture
    22 on at

    Hi @abm , thank you for your response! How do I incorporate that into my existing query of Modified gt '@{formatDateTime(adddays(utcNow(),-7),'yyyy-MM-dd')}'

    When I try to add an "and" statement, the run fails. I've tried multiple ways to add it with no success.

  • Verified answer
    abm abm Profile Picture
    32,865 Most Valuable Professional on at

    Hi @DonnaW 

     

    Try the below and it did worked for me.

     

    Created gt formatDateTime(adddays(utcNow(),-7),'yyyy-MM-dd') and substringof('academy',ImageTags)

  • DonnaW Profile Picture
    22 on at

    I keep getting an error that the column ImageTags doesn't exist, even though it does. I tried ImageTags, Image_Tags, imagetags, Imagetags, and Image Tags. Any ideas on why it won't recognize my column name?

  • abm abm Profile Picture
    32,865 Most Valuable Professional on at

    Hi

     

    Do the following:

     

    1. Go to the settings of the list

    2. Under the columns click the ImageTags

    3. Check the browser URL and at the end it shows column=

    4. That's the schema name you need to use in your filter query.

     

    Thanks

  • DonnaW Profile Picture
    22 on at

    Okay! I think I see the problem now, for some reason, the Image Tags field, even though it displays as a column in my library, is not in the list with the other fields in the settings. So very weird. Thank you for all of your help, I really appreciate it. I think this is a full on Support issue now. 

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
Michael E. Gernaey Profile Picture

Michael E. Gernaey 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard