web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Copilot Studio / why SQL query become j...
Copilot Studio
Unanswered

why SQL query become json? how to parse json into string?

(0) ShareShare
ReportReport
Posted on by 28

Hi,

 

 

I am having difficulty with sql query when trying to implement in copilot studio, which part i did mistake on?

 

[1] simple SQL query result as below, i just want the "1" as result, no issue on SQL

zhengtzerlee_1-1715943150465.png

 

 

[2] on power automate, I execute the same query

zhengtzerlee_0-1715943059997.png

 

result is int, so i convert to string

zhengtzerlee_2-1715943263447.png

 

[3] when in copilot studio bot, it weirdly become json, Zzzzzz.. why

zhengtzerlee_3-1715943346386.png

 

may i know how to only getting the "1" in "changeLaptop" column?

i must have miss something, SQL query should be direct simple ><

 

thanks a lot

Lee

I have the same question (0)
  • v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @zhengtzerlee ,

     

    Please try this

    string(body('execute...')?['ResultSets/Table1']?[0]?['changeLaptop'])

     

    Best Regards,

    Wearsky

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Copilot Studio

#1
Valantis Profile Picture

Valantis 619

#2
chiaraalina Profile Picture

chiaraalina 163 Super User 2026 Season 1

#3
Haque Profile Picture

Haque 147

Last 30 days Overall leaderboard