Hi,,
This is an example of adding Form attachments directly to a List Item.
In the Parse JSON action we want to parse the JSON from the question that has the file uploads. Mine is called File Upload. This schema seems to work with Form Attachments.,
{
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"link": {
"type": "string"
},
"id": {
"type": "string"
},
"type": {},
"size": {
"type": "integer"
},
"referenceId": {
"type": "string"
},
"driveId": {
"type": "string"
},
"status": {
"type": "integer"
},
"uploadSessionUrl": {}
},
"required": [
"name",
"link",
"id",
"type",
"size",
"referenceId",
"driveId",
"status",
"uploadSessionUrl"
]
}
}
Next create the item.
Next add an apply to each and point to the body of Parse JSON
Next we need to get the file content from the uploads. Notice the path of the file. It includes the quesiton "File Upload"/dynamicname from Parse JSON.
Last step, we add the attachment.
This is in a loop because there could be more than one upload in the Form question.
------------------------------------------------
⭐ If this was helpful, please like and mark as a verified answer to help others find this too!
Always glad to help! 💯💯💯💯💯
Tom
Follow me on LinkedIn - Thomas Rice, PMP | LinkedIn