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 / Power Apps / Transform Data to JSON...
Power Apps
Unanswered

Transform Data to JSON and then send it to a SQL Table

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

How can i do this

I used to send the Forms to SQL directly without any intermediate, but now my bosses are asking me
that when de data is send it has to transform to JSON and then send it to an intermediate that transform it again, o now it can be added to the SQL Table.

They say it is for security reasons thta the data must be in JSON format

it can be done with a flow or something like that

Categories:
I have the same question (0)
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    There is a built in JSON function that converts objects to JSON. Here is an example of setting a variable to a JSON value of a collection:

     

    Set(jsonString,JSON(yourCollection));

     

    ---
    If this answered your question, please click "Accept Solution". If this helped, please Thumbs Up. 

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    AND HOW DO I VALIDATE THAT DATA?

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    What do you mean exactly? Like check that it's a valid JSON schema? Or validate that the values are correct?

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Both options

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I've never run into any reason to doubt the conversion has produced an invalid schema or incorrect values. You can use a validator like the one below to run some tests, but everything should be valid.

    https://jsonlint.com/

    ---
    If this answered your question, please click "Accept Solution". If this helped, please Thumbs Up.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    is it possible to validate with a button in powerapps or connect a service to powerapps that validate the JSON

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I don't know that the JSON() function is capable of producing invalid JSON schemas. I have never had a problme with an invalid schema from the function. To answer your question, there may be a way to validate it using Power Automate, but I'm not sure. You can post that question on their forums here if you'd like

    https://powerusers.microsoft.com/t5/General-Power-Automate/bd-p/MPAForum

    ---
    If this answered your question, please click "Accept Solution". If this helped, 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

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 > Power Apps

#1
11manish Profile Picture

11manish 541

#2
WarrenBelz Profile Picture

WarrenBelz 434 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 289

Last 30 days Overall leaderboard