Skip to main content

Notifications

Power Automate - General Discussion
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:
  • NewBee117 Profile Picture
    NewBee117 247 on at
    Re: Stored Procedure - check if result set is empty

    That works! thank you so much!   🙂

  • Verified answer
    SamLed Profile Picture
    SamLed 2,326 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
    NewBee117 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

     

  • SamLed Profile Picture
    SamLed 2,326 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
    NewBee117 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
    SamLed 2,326 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.

     

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,475

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,767

Leaderboard