1. Declare Attachment Array type Variable for the uploaded Attachment.
2. After Get Response Details add the Parse JSON action:
{
"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"
]
}
}
3. Then after add Apply to Each action.
Select Output from Previous Stage: Select the Parse JSON action body
4. Then after add the Get file content using Path one drive action
File Path: Use your Microsoft Form file path combined with the dynamic content ‘File name’ from the Parse JSON action.
5. Then after add the Append to array variable
{
"name": "@{items('Apply_to_each')['name']}",
"content": "@{body('Get_file_content_using_path)}"
}
6. Use this append to array Attachment variable in email