Hi,
I have a requirement to pass 2 collections to Flow.
The first collection is called "steps" which is then passed to a collection "finalSteps". Once i run my first action it looks like this:

I am then using an attachment control to upload images and descriptions (within a Gallery).
Then I am using a button to bring it all together and pass it to Flow
Collect(
finalSteps,
ShowColumns(
AddColumns(
Gallery2.AllItems,
"description",
TextInput23.Text,
"base64",
With(
{varDemoFromAttachmentControl: JSON(Image8.Image, JSONFormat.IgnoreBinaryData)},
Mid(
varDemoFromAttachmentControl,
Find(",", varDemoFromAttachmentControl) + 1,
Len(varDemoFromAttachmentControl) - Find(",", varDemoFromAttachmentControl) - 1
)
)
),
"description",
"base64",
"Name"
)
);
//'Process-UploadMultipleImages'.Run(JSON(finalSteps, JSONFormat.IndentFour));
Once I press the button, this is what the collection looks like

Then in Flow its failing on the Parse JSON action (im guessing its my schema)

[
{
"message": "Required properties are missing from object: Name, base64, description, stepTitle, stepDescription.",
"lineNumber": 0,
"linePosition": 0,
"path": "[0]",
"value": [
"Name",
"base64",
"description",
"stepTitle",
"stepDescription"
],
"schemaId": "#/items",
"errorType": "required",
"childErrors": []
},
{
"message": "Required properties are missing from object: Name, base64, description, stepTitle, stepDescription.",
"lineNumber": 0,
"linePosition": 0,
"path": "[1]",
"value": [
"Name",
"base64",
"description",
"stepTitle",
"stepDescription"
],
"schemaId": "#/items",
"errorType": "required",
"childErrors": []
},
{
"message": "Required properties are missing from object: Name, base64, description, stepTitle, stepDescription.",
"lineNumber": 0,
"linePosition": 0,
"path": "[2]",
"value": [
"Name",
"base64",
"description",
"stepTitle",
"stepDescription"
],
"schemaId": "#/items",
"errorType": "required",
"childErrors": []
}
]
This is what i have for my Schema
It looks like there's a small issue with the schema you provided. Specifically, the property name for "stepDetail" in the finalSteps collection is different from the property name for "stepDescription" in the schema. Make sure the property names match exactly.
Also, when defining the schema, make sure to use the exact same casing and spelling for property names as in your collection. For example, in your schema, you have "stepTitle" with a capital "T", but in your collection, it's "steptitle" with a lowercase "t". Make sure these match exactly as well.
Here's an updated schema that should match your collection:
json
Copy code
{
"type": "array",
"items": {
"type": "object",
"properties": {
"Name": {
"type": "string"
},
"base64": {
"type": "string"
},
"description": {
"type": "string"
},
"stepTitle": {
"type": "string"
},
"stepDetail": {
"type": "string"
}
},
"required": [
"Name",
"base64",
"description",
"stepTitle",
"stepDetail"
]
}
}
I tried copying the output of Compose and generating from sample but it gave me this

Any idea where i am going wrong or am i passing the collections in Power Apps incorrectly?
Thanks,
David