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 Automate / Add form details in an...
Power Automate
Answered

Add form details in an array

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello everyone,

 

I want to put some form details in a array. When i make a variable array with the details, it works fine:

 

Before run:

First variable.jpg

 

After run:

First variable (executed).jpg

 

However, when i add an "Parse JSON", I get the following error:

 

JSON error.png

 

What am i doing wrong?

I also want to enter an action that comes from the form that contains text. How to do that?

 

Thanks in advance

 

Categories:
I have the same question (0)
  • Verified answer
    Jcook Profile Picture
    7,783 Most Valuable Professional on at

    Hello @Anonymous 

     

    Could you share a screenshot of your Flow in Edit mode, and show how your Parse JSON action looks.

     

    For grabbing a text field from your form, use a Compose action

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hey @Jcook, thank you for helping me.

    The code in the action "variable initialiseen" is seen below this line. The flow after is the flow in edit mode.

    formatDateTime(body('Reactiedetails_ophalen')?['ra8ff95dfd58b4c528b48fe28555381f9'],'dd-MM-yy')

    Flow edit mode 1.png

    Flow edit mode 2.png

     

    The next image is the code from the JSON

    JSON in edit.png

     

    I tried to use a compose action. It work in the variable, but I it won't work in JSON:

    "Opmerking":@{outputs('Opstellen')}

     

     

  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hey @Jcook,

    I solved the problem on my own, but thanks for your tip to use a compose action.

    Every time I was use the 'Parse JSON' action, i cliked on the 'Use sample payload to generate schema' and copy the schema of the variable. That didn't go well in the JSON.

     

    Later on I manually typed in the values between the "" and the action worked.

    Thanks to you, i added the text variable into the JSON with success.

     

    For everyone else that wants to use a variable from something else (like MS Forms):

    Load the (Form) details in a variable first before use the Parse JSON action.

     

    Use the example of the details below in the Parse JSON action:

     

    {
     "type": "array",
     "items": {
     "type": "object",
     "properties": {
     "Number": {
     "type": "string"
     },
     "Date": {
     "type": "string"
     },
     "Note": {
     "type": "string"
     }
     },
     "required": [
     "Number",
     "Date",
     "Note"
     ]
     }
    }

     

     

    Good luck everyone!

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 Automate

#1
Vish WR Profile Picture

Vish WR 953

#2
Valantis Profile Picture

Valantis 810

#3
Haque Profile Picture

Haque 622

Last 30 days Overall leaderboard