Has anyone found a way to automate the posting of a message or status update in a project when a new page is created in a specific notebook in Onenote?
I’ve tried setting up a flow in Power Automate with limited success. My issue in the flow I created is the body of the page doesn’t populate with the body text.
Here is the flow:
{
“inputs”: {
“host”: {
“connectionName”: “shared_onenote”,
“operationId”: “OnNewPageInSection”,
“apiId”: “/providers/Microsoft.PowerApps/apis/shared_onenote”
},
“parameters”: {
“notebookKey”: “Brandon @ G removed for privacy|$|https://companyname-my.sharepoint.com/personal/filepath”,
“sectionId”: “https://www.onenote.com/api/v1.0/myOrganization/siteCollections/collectionid/notes/sections/1-03b423e0-b667-4256-a131-2c896286e1cf/pages”
},
“authentication”: “@parameters(‘$authentication’)”
},
“recurrence”: {
“interval”: 3,
“frequency”: “Minute”
},
“metadata”: {
“operationMetadataId”: “97b1b2c2-4d2d-4411-9342-1ef63c0ef02b”
},
“splitOn”: “@triggerOutputs()?[‘body/value’]”
}
{
“inputs”: {
“host”: {
“connectionName”: “shared_office365”,
“operationId”: “SendMailWithOptions”,
“apiId”: “/providers/Microsoft.PowerApps/apis/shared_office365”
},
“parameters”: {
“optionsEmailSubscription/Message/To”: “project_name@mail.asana.com”,
“optionsEmailSubscription/Message/Subject”: “@triggerOutputs()?[‘body/title’]”,
“optionsEmailSubscription/Message/Options”: “none”,
“optionsEmailSubscription/Message/HeaderText”: “@triggerOutputs()?[‘body/title’]”,
“optionsEmailSubscription/Message/SelectionText”: “None”,
“optionsEmailSubscription/Message/Body”: “@triggerOutputs()?[‘body’]”,
“optionsEmailSubscription/Message/Importance”: “Normal”,
“optionsEmailSubscription/Message/HideHTMLMessage”: false,
“optionsEmailSubscription/Message/ShowHTMLConfirmationDialog”: false
},
“authentication”: “@parameters(‘$authentication’)”
},
“metadata”: {
“operationMetadataId”: “fa34fbdd-41a4-48fa-ae41-9c34088ee0eb”
}
}