I created a flow to copy attachments from email to a one drive folder. I started with using the "When a new email arrives (V3)" of the Office 365 Outlook type. It is able to create a file that is corrupted and of size 4 bytes.
There is also a template that does exactly the same thing but is using (V2) of the same connector type. It works perfectly fine with the same steps that I applied before. Is this supposed to be a bug in the (V3)? How to make a flow using V2 since V3 is not working?
How I know template is using V2:
Peek code of V3 from my custom flow:
{
"inputs": {
"host": {
"connectionName": "shared_office365",
"operationId": "OnNewEmailV3",
"apiId": "/providers/Microsoft.PowerApps/apis/shared_office365"
},
"parameters": {
"folderPath": "Inbox",
"includeAttachments": false,
"subjectFilter": "POCOM File Daily Dump",
"importance": "Any",
"fetchOnlyWithAttachment": true
},
"authentication": "@parameters('$authentication')"
},
"splitOn": "@triggerOutputs()?['body/value']"
}
Peek code of V2 from template flow:
{
"inputs": {
"host": {
"connection": {
"name": "@parameters('$connections')['shared_office365']['connectionId']"
}
},
"method": "get",
"path": "/v2/Mail/OnNewEmail",
"queries": {
"folderPath": "Inbox",
"importance": "Any",
"fetchOnlyWithAttachment": true,
"includeAttachments": true
},
"authentication": "@parameters('$authentication')"
},
"recurrence": {
"interval": 3,
"frequency": "Minute"
},
"metadata": {
"flowSystemMetadata": {
"swaggerOperationId": "OnNewEmailV2"
}
},
"splitOn": "@triggerBody()?['value']"
}