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 Platform Community / Forums / Power Automate / Stored Procedure - che...
Power Automate
Unanswered

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:
I have the same question (0)
  • SamLed Profile Picture
    2,338 Moderator on at
    Re: Stored Procedure - check if result set is empty

    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
    Re: Stored Procedure - check if result set is empty

    @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,338 Moderator on at
    Re: Stored Procedure - check if result set is empty

    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
    Re: Stored Procedure - check if result set is empty

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

    New error:
    NewBee117_0-1691613069599.png

     

  • Verified answer
    SamLed Profile Picture
    2,338 Moderator on at
    Re: Stored Procedure - check if result set is empty

    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
    Re: Stored Procedure - check if result set is empty

    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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 497 Moderator

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 477 Super User 2025 Season 2

#3
chiaraalina Profile Picture

chiaraalina 242

Last 30 days Overall leaderboard