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 Pages / Insert JSON data into CDS
Power Pages
Answered

Insert JSON data into CDS

(1) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi Team,

 

I want to insert output of my data which is in JSON format into CDS. How can I achieve that?

 

Thank you in advance.

Categories:
I have the same question (0)
  • OOlashyn Profile Picture
    3,498 Most Valuable Professional on at

    Hi @Anonymous ,

     

    Can you clarify a bit your requirement? Do you want to store a JSON in CDS as a string in the CDS or what? If yes then you can just create a multiline text field on the entity and store data their (just don't forget that you have a maximum number of characters in the field).

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    So I have output something like as shown in the image after particular user logged in. And I want to store data in the form of table. for ex- in the image I have two field under DATA section i.e. answers and evidence. I want that data to be store in table as a single row for the logged in user under respective columns.

     

    Please let me know if you need more clarification.

    Thank You. 

    output JSON.PNG
  • Verified answer
    Christian Leverenz Profile Picture
    1,214 on at

    Hi @Anonymous ,

    i think, the easiest way would be to create a form with at least the required fields to fill in, create an entityform out of it, then add some javascript to the entityform to call the service and place the responsefields in the corresponding fields in the entityform and click submit ( $("#submit").click() should do the job ) 

    You can also create an invisible iframe on a page where you need this, load the form there and write some gluecode to send data to the iframe via postMessage.

    Another possibility is to create a textfield on your (or another...) entity, just write the stringified json object and write a plugin which does all the dirty stuff which could be needed 🙂

    Both (the text-json ist just a small variation of the preceding two) should do the job, we did both in some projects.

     

    But: there will/should/could/... be a new feature to be visible in junehttps://docs.microsoft.com/en-us/power-platform-release-plan/2020wave1/microsoft-powerapps/planned-features#power-apps-portals-improvements ) : CRUD operations for portalshttps://docs.microsoft.com/en-us/power-platform-release-plan/2020wave1/microsoft-powerapps/web-apis-crud-operations-common-data-service-entities ) . This should make these kind of tasks muc miuch more easy.

    Hope this helps,

      Christian

  • tjasonMayo Profile Picture
    4 on at

    You can now store files directly into Dataverse using File columns.

     

    File columns (Microsoft Dataverse) - Power Apps | Microsoft Docs

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 April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Pages

#1
Valantis Profile Picture

Valantis 49

#2
11manish Profile Picture

11manish 33

#3
Haque Profile Picture

Haque 28

Last 30 days Overall leaderboard