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 / Stored Procedure - che...
Power Automate
Answered

Stored Procedure - check if result set is empty

(0) ShareShare
ReportReport
Posted on by 247

How do I get to this input box in the Condition control so I can put in the condition string? 

 

NewBee117_0-1691607888483.png

 

Here is the screen I am stuck with, 

NewBee117_1-1691607991983.png

 

 

Categories:
  • SamLed Profile Picture
    2,340 Moderator on at

    Well, I don't know what output your proc stock returns, but in the following action I would check if empty using empty() function expression passing it the output of previous action.

    ______________________________________________________________

    If I have answered your question, please Accept the post as solution.
    If you like my response, please Thumbs Up.

     

  • NewBee117 Profile Picture
    247 on at

    @SamLed that is what I am trying to do, but how? I don't get the text input box like the first image above.

  • SamLed Profile Picture
    2,340 Moderator on at

    using a condition action, check this topic: Solved: Check if Get Items is Empty - Power Platform Community (microsoft.com)

     

    But check length of your stored proc action output when returns empty result to fit condition to the right length. 

     

    [Edit] of course, replace outputs('Get_items') by your action output: outputs('revProjectIDLookupPAD_p')

    ______________________________________________________________

    If I have answered your question, please Accept the post as solution.
    If you like my response, please Thumbs Up.

  • NewBee117 Profile Picture
    247 on at

    Updated condition:  length(outputs('revProjectIDLookupPAD_p')?['body']?['ResultSets']) = 0

    New error:
    NewBee117_0-1691613069599.png

     

  • Verified answer
    SamLed Profile Picture
    2,340 Moderator on at

    Ok, to fake your action output I used a compose, see how I check empty result for your case:

    SamLed_0-1691613727614.png

     

    Use expression on left condition side:  empty(outputs('revProjectIDLookupPAD_p')?['ResultSets'])

     

    Result:

    SamLed_0-1691613933182.png

     

    ______________________________________________________________

    If I have answered your question, please Accept the post as solution.
    If you like my response, please Thumbs Up.

  • NewBee117 Profile Picture
    247 on at

    That works! thank you so much!   🙂

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 317 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 247

#3
Henil Profile Picture

Henil 117

Last 30 days Overall leaderboard