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 / Unable to get SQL data...
Power Automate
Unanswered

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
      }
]

Categories:
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

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
Michael E. Gernaey Profile Picture

Michael E. Gernaey 462 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 456 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard