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

Unable to get SQL database results.

(0) ShareShare
ReportReport
Posted on by 127

Hi, All.

I'm having trouble with how to retrieve SQL execution results in SQL Database.
The results obtained with PowerAutomate are as follows.

It cannot be obtained even with a function such as "variable('ARRAY VARIABLE NAME')[0]".
I want to get only "0" from the result as below, what should I do?

Thanks.


[
      {
            "": 0
      }
]

I have the same question (0)
  • Verified answer
    v-LilyW-msft Profile Picture
    on at
    Re: Unable to get SQL database results.

    Hi @soooofunny 

    Please try this expression:

    variables('Test')?[0]?['']

    vLilyWmsft_0-1638500363881.png

    vLilyWmsft_1-1638500412680.png

    Hope the content above may help you.

    Best Regards

    If my replay helps, then please consider Accept it as the solution to help the other members find it more quickly.

  • Verified answer
    soooofunny Profile Picture
    127 on at
    Re: Unable to get SQL database results.

    I'm sorry for my late reply.
    I was able to achieve it by what you taught me.

    Thanks!

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 659 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 386 Moderator

#3
chiaraalina Profile Picture

chiaraalina 290

Last 30 days Overall leaderboard