Skip to main content
Community site session details

Community site session details

Session Id : /Q0ZCbh1Rj0TxueOtXILUq
Power Automate - General Discussion
Unanswered

Help with condition statement

Like (0) ShareShare
ReportReport
Posted on 2 Feb 2024 16:53:19 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

 

 

  • abouchaalaBAIT Profile Picture
    930 Super User 2025 Season 1 on 02 Feb 2024 at 19:41:33
    Re: Help with condition statement
    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.

  • avinson Profile Picture
    28 on 02 Feb 2024 at 18:17:03
    Re: Help with condition statement

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

  • abouchaalaBAIT Profile Picture
    930 Super User 2025 Season 1 on 02 Feb 2024 at 17:41:54
    Re: Help with condition statement

    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.

     

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1