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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Json data in powerapps...
Power Apps
Unanswered

Json data in powerapps survey app

(0) ShareShare
ReportReport
Posted on by 34

Hello All,

 

I am working on survey canvas app with Dataverse as Datasource and need some help with it. 

I want create something like admin will be able to define the template of the survey with some properties like id title and sections and then section will have id order description.  And when survey is created i want to store the data properties as a json 

stored as JSON below is an example of the a data JSON object

[

{ "Answer": "", "Description": "Please provide the background", "Id": 1, "Order": 1, "Title": "Background", "Type": "Freetext" }

,

How to do this with canvas app, is it doable?

Categories:
I have the same question (0)
  • BCLS776 Profile Picture
    8,994 Moderator on at

    Yes, you can do this with a canvas app. I assume you will have a table of answer records, so this example shows them stored in a local collection:

    Collect(colAnswers,
    { 
     Answer: "", 
     Description: "Please provide the background", 
     Id: 1, 
     Order: 1, 
     Title: "Background", 
     Type: "Freetext" 
    })

    Then you can form a JSON object out of the collection with a statement like:

    UpdateContext({ varJSON:
     JSON({
     Answers: colAnswers
     })
    })
    

    Hope that helps,

    Bryan

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 Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard