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

Add form details in an array

(0) ShareShare
ReportReport
Posted on by

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,781 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
    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
    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

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 Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard