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 / Trying to extract JSON...
Power Automate
Unanswered

Trying to extract JSON objects from an Array

(0) ShareShare
ReportReport
Posted on by 2

I have initialized an array variable that contains 7 JSON objects. I'm trying to parse the information so that I can create sharepoint columns for each jason object. However, I'm getting this error:

 

The 'content' property of actions of type 'ParseJson' must be valid JSON. The provided value cannot be parsed: 'Unexpected character encountered while parsing value: J. Path '', line 0, position 0.'.

 

Here is my array

[
{
"ColumnType": "Text",
"Title": "Work/Task",
"myBody": "{\r\n '__metadata' :{'type' : 'SP.Field'},\r\n 'FieldTypeKind' : 2,\r\n 'Required': 'true',\r\n 'Title' : 'Work/Task',\r\n 'Description' : 'Task to complete by the new employee'}"
},
{
"ColumnType": "Text",
"Title": "Description",
"myBody": "{\r\n '__metadata' :{'type' : 'SP.Field'},\r\n 'FieldTypeKind' : 3,\r\n 'Required':'true',\r\n 'Title' : 'Description',\r\n 'Description' : 'Brief description of the task or work to complete.'}"
},
{
"ColumnType": "Choice",
"Title": "Complete By",
"myBody": "{\r\n '__metadata' : {'type' : 'SP.FieldChoice'},\r\n 'FieldTypeKind' : 6,\r\n 'Required':'true'\r\n 'Title' : 'Complete By',\r\n 'Choices' : { 'results' : ['First day', 'Second day', 'Week 1', 'Week 2', 'Before 30 days', 'Before 90 days']},\r\n 'Description' : 'Due date by when the work should be completed'}"
},
{
"ColumnType": "Choice",
"Title": "Task Status",
"myBody": "{\r\n '__metadata' : {'type' : 'SP.FieldChoice'},\r\n 'FieldTypeKind' : 6,\r\n 'Required':'true',\r\n 'Title' : 'Task Status',\r\n 'Choices' : { 'results' : ['Completed', 'In Progress', 'Pending', 'Not Completed']},\r\n 'Description' : 'Current status of the item being worked by the employee'}"
},
{
"ColumnType": "Date",
"Title": "Completed Date",
"myBody": "{\r\n '__metadata': {'type': 'SP.FieldDateTime'},\r\n 'FieldTypeKind': 4,\r\n 'Required': 'true',\r\n 'Title': 'Completed Date',\r\n 'Description': 'Date of the completion of the task'}"
},
{
"ColumnType":"People",
"Title": "Mentor/Trainer",
"myBody": "{\r\n '__metadata': {'type':'SP.FieldUser'},\r\n 'FieldTypeKind': 20,\r\n 'Required':'true',\r\n 'Title' : 'Mentor/Trainer',\r\n 'Description' : 'Point of contact to help with the work or task item'}"
},
{
"ColumnType":"Text",
"Title": "Relevant Link",
"myBody": "{\r\n '__metadata': {'type':'SP.Field'},\r\n 'FieldTypeKind': 11,\r\n 'Required':'true',\r\n 'Title' : 'Relevant Link',\r\n 'Description' : 'Helpful link to support the task or work item'}"
}
]

Categories:
I have the same question (0)
  • lbendlin Profile Picture
    8,474 Super User 2025 Season 2 on at

    seems to work fine here ?

     

    lbendlin_0-1670635373918.pnglbendlin_1-1670635401427.pnglbendlin_2-1670635420789.png

     

  • calexmorales Profile Picture
    2 on at

    Yeah i was able to get it to work, I needed to use the output of the Compose step to feed the Parse JSON

     

    THanks

  • v-dezhili-msft Profile Picture
    Microsoft Employee on at

    Hi @calexmorales ,

     

    Do you want to parse an item in the array into Json?
    Could you please share a screenshot of your flow?
    I did a test, and it works successfully.

    vdezhilimsft_0-1670816977667.png

    vdezhilimsft_1-1670817010381.png

    vdezhilimsft_2-1670817083525.png

    Best Regards,

    Dezhi

     

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