Skip to main content

Notifications

Power Automate - General Discussion
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

 

 

  • abouchaalaBAIT Profile Picture
    abouchaalaBAIT 930 on at
    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
    avinson 28 on at
    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
    abouchaalaBAIT 930 on at
    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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,526

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,907

Leaderboard