Hello,
In my flow below, I am creating a SharePoint list item when a new response is submitted from MS Forms.
Next I am using this JSON schema to parse the attachments from MS Forms before being able to add them to my SharePoint list item. This is working for files such as .txt, .doc, .xls but not working for .jpg, .png - error at bottom of post.
{
"type": "object",
"properties": {
"type": {
"type": "string"
},
"items": {
"type": "object",
"properties": {
"type": {
"type": "string"
},
"properties": {
"type": "object",
"properties": {
"name": {
"type": "object",
"properties": {
"type": {
"type": "string"
}
}
},
"link": {
"type": "object",
"properties": {
"type": {
"type": "string"
}
}
},
"id": {
"type": "object",
"properties": {
"type": {
"type": "string"
}
}
},
"type": {
"type": "object",
"properties": {}
},
"size": {
"type": "object",
"properties": {
"type": {
"type": "string"
}
}
},
"referenceId": {
"type": "object",
"properties": {
"type": {
"type": "string"
}
}
},
"driveId": {
"type": "object",
"properties": {
"type": {
"type": "string"
}
}
},
"status": {
"type": "object",
"properties": {
"type": {
"type": "string"
}
}
},
"uploadSessionUrl": {
"type": "object",
"properties": {}
}
}
},
"required": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
}
}
When I run the flow, I get thie error on the JSON action:
[
{
"message": "Invalid type. Expected Object but got Array.",
"lineNumber": 0,
"linePosition": 0,
"path": "",
"schemaId": "#",
"errorType": "type",
"childErrors": []
}
]
As mentioned above, this is only occuring for image attachments.