Power Automate and Microsoft Forms: Send uploaded files as email attachments

Chad Kealey
Chad Kealey
71.8 هزار بار بازدید - 3 سال پیش - Update: I recently published a
Update: I recently published a playlist that covers this topic (and related ones) more comprehensively. See Microsoft Forms, Uploaded Files and P...

In this video, I'll modify a copy of another flow (see MS Forms File Upload to SharePoint) to send files submitted in a Forms file upload question as email attachments (rather than saving them to SharePoint). Important notes:

If the File Upload question in your form is not required, the "Parse JSON" action will fail. See MS Forms - Handling non-required file... for information on how to adjust the flow if the file upload question on your form is not required.

For the Schema in the Parse JSON action, you'll use this:
{
 "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"
   ]
 }
}

And when building the attachments variable, you'll use this:
{
 "Name": file-name-from-get-file-metadata-action,
 "ContentBytes": file-content-from-get-file-content-action
}
3 سال پیش در تاریخ 1400/02/21 منتشر شده است.
71,829 بـار بازدید شده
... بیشتر