Thank you. Here you have them:
1. The Flow has the green ticks. See https://www.diigo.com/item/image/5pj5q/rxve
2. But there is no run history registered.
The code:
1. When an Email arrives:
{
"inputs": {
"host": {
"connection": {
"name": "@parameters('$connections')['shared_office365']['connectionId']"
}
},
"method": "get",
"path": "/Mail/OnNewEmail",
"queries": {
"folderPath": "Id::AQMkADAzY2MBZjFmLTNjMzgtNGVkZi1iODdhLThmOTRkZAA5MmM0NzAALgAAA66h-FR5-BBKk0XDSR3CGNUBAIP9dWobQNdAh0avekbeD7UAAAIBCQAAAA==",
"from": "sender@email.com;",
"importance": "High",
"fetchOnlyWithAttachment": false,
"includeAttachments": false
},
"authentication": "@parameters('$authentication')"
},
"recurrence": {
"interval": 5,
"frequency": "Minute"
},
"metadata": {
"Id::AQMkADAzY2MBZjFmLTNjMzgtNGVkZi1iODdhLThmOTRkZAA5MmM0NzAALgAAA66h-FR5-BBKk0XDSR3CGNUBAIP9dWobQNdAh0avekbeD7UAAAIBCQAAAA==": "Sent Items",
"flowSystemMetadata": {
"swaggerOperationId": "OnNewEmail"
}
},
"splitOn": "@triggerBody()?['value']"
}2. Create a Task
{
"inputs": {
"host": {
"connection": {
"name": "@parameters('$connections')['shared_planner']['connectionId']"
}
},
"method": "post",
"body": {
"planId": "PyRrlTJNm0W67o-DeXqxmCpcAEjGq",
"title": "New Task to Distribute",
"bucketId": "Nmd8dwjsWUxOPfJ1i6-FIDpcABOA6",
"startDateTime": "@{utcNow()}",
"dueDateTime": "@{addDays(5)}"
},
"headers": {
"prefer": " return=representation"
},
"path": "/v1.0/planner/tasks",
"authentication": "@parameters('$authentication')"
},
"metadata": {
"flowSystemMetadata": {
"swaggerOperationId": "CreateTask_V2"
}
}
}rgs
J.