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 / Help with condition st...
Power Automate
Unanswered

Help with condition statement

(0) ShareShare
ReportReport
Posted on by 28

I have created a flow that pulls a list from sharepoint folder and then gives a count of the number of files in that space. I want to use a condition that says, if the file count is 0 then do nothing, if there's 1+ files it will send an email with the number of files in that location. I am having issues with the appropriate condition. 

avinson_0-1706892706607.png

avinson_1-1706892730210.png

 

 

Categories:
I have the same question (0)
  • abouchaalaBAIT Profile Picture
    932 Moderator on at

    Hello @avinson 

    you should use the length() function in order to get the GET Files COMPL count

    ----------------------------------------------------------
    If I have answered your question, please mark your post as Solved. 🆗✔️
    If you like my response, please give it a Thumbs Up. 👍
    You can accept more than one post as a solution.

     

  • avinson Profile Picture
    28 on at

    Thank you @abouchaalaBAIT sorry to ask, where would I use that function in the condition or elsewhere?

  • abouchaalaBAIT Profile Picture
    932 Moderator on at
    length(outputs('Get_files_(properties_only)')?['body/value'])

    Use this function and replace with your Get files value variable : 

    abouchaalaBAIT_0-1706902831849.pngabouchaalaBAIT_1-1706902844685.png

    ----------------------------------------------------------
    If I have answered your question, please mark your post as Solved. 🆗✔️
    If you like my response, please give it a Thumbs Up. 👍
    You can accept more than one post as a solution.

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 March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 552

#2
Valantis Profile Picture

Valantis 388

#3
11manish Profile Picture

11manish 375

Last 30 days Overall leaderboard