cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
soooofunny
Helper II
Helper II

Unable to get SQL database results.

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

2 ACCEPTED SOLUTIONS

Accepted Solutions
v-LilyW-msft
Community Support
Community Support

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.

View solution in original post

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

Thanks!

View solution in original post

2 REPLIES 2
v-LilyW-msft
Community Support
Community Support

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.

View solution in original post

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

Thanks!

View solution in original post

Helpful resources

Announcements
2022 Release Wave 1 760x460.png

2022 Release Wave 1 Plan

Power Platform release plan for the 2022 release wave 1 describes all new features releasing from April 2022 through September 2022.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

User Group Leader Meeting January 768x460.png

Calling all User Group Leaders!

Don't miss the User Group Leader meetings on January, 24th & 25th, 2022.

Top Solution Authors
Top Kudoed Authors
Users online (2,588)