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 Automate - Building Flows
Answered

Test for Empty Result from Get Items not working

(0) ShareShare
ReportReport
Posted on by 2,297

I have to be doing something REALLY stupid for the life of me I can't find it.  Can someone please spot my error??

I have a get items after which I am testing to see if the result set was empty with the statement below which looks to be to be correct.

empty(body('Get_Accomplishments_(PA)'))

 

With the "new" way of doing advanced forumulas I am entering that in the left side and testing that it is equal to true.  You can see in the result below that an empty result is indeed returned, yet the check is always evaluating to false.  

 

Why?????  What am I missing?

 

 

F7.png

I have the same question (0)
  • Ed Gonzales Profile Picture
    4,531 Most Valuable Professional on at
    Re: Test for Empty Result from Get Items not working

    I'm kind of new, so maybe I'm oversimplifying it, but could you just look for a 'null' on an index field?  Something like the opposite of this (this user wanted rows with data):

     

    20190614.PNG

    Let us know.

    Thanks.

  • Verified answer
    LRVinNC Profile Picture
    2,297 on at
    Re: Test for Empty Result from Get Items not working

    No, a null test doesn't work but I did FINALLY stumble onto the right combination:

    empty(body('Get_Accomplishments_(PA)')?['value'])

    equals true.

     

    That worked correctly.  

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 691 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 431 Moderator

#3
developerAJ Profile Picture

developerAJ 266

Last 30 days Overall leaderboard