cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
IPC_ahaas
Continued Contributor
Continued Contributor

Cannot Create Array of Form Response

OK, what am I doing wrong. I tried this as Initialize Variable and as Set Variable for the Array:

 

IPC_ahaas_0-1670012531070.png

 

I get:

 

BadRequest. The variable 'Tasks' of type 'Array' cannot be initialized or updated with value of type 'String'. The variable 'Tasks' only supports values of types 'Array'.

 

1 ACCEPTED SOLUTION

Accepted Solutions

It looks like it's because you have a period instead of a comma which means it's not valid JSON.

 

grantjenkins_0-1670074621222.png

 



----------------------------------------------------------------------

If I've answered your question, please mark the post as Solved.

If you like my response, please consider giving it a Thumbs Up.

View solution in original post

2 REPLIES 2
IPC_ahaas
Continued Contributor
Continued Contributor

[
{
"Task": "Port Phone Number",
"Value": ""
}.
{
"Task": "Phone",
"Value": "Apple iOS"
},
{
"Task": "Desk Accessories",
"Value": "Dual Monitors"
},
{
"Task": "Computer",
"Value": "Laptop"
},
{
"Task": "Traverse",
"Value": "Yes like Steve Rogers"
}, 
{
"Task": "ExacqVision",
"Value": "Clarks Hill,Mitchell"
}, 
{
"Task": "Motive",
"Value": "Admin"
}, 
{
"Task": "SharePoint",
"Value": "Operations, HR, 205"
}, 
{
"Task": "Email",
"Value": "Yes"
}
]

 

I had this working for 5 minutes while it was in a compose, and then the compose as inside an Initialize Task, and it stopped working again.

It looks like it's because you have a period instead of a comma which means it's not valid JSON.

 

grantjenkins_0-1670074621222.png

 



----------------------------------------------------------------------

If I've answered your question, please mark the post as Solved.

If you like my response, please consider giving it a Thumbs Up.

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Users online (5,178)