Error code: "40001 - The request does not contain a valid authentication token.",

Copper Contributor

Hello,

 

I am trying to send an automated email when a new page is created in onenote using this flow template - https://us.flow.microsoft.com/en-us/galleries/public/templates/e4209b30d32d11e6a21125f44639ee06/get-.... I want to include a link to the new page and used the "send an email" outlook step. Inside the email, I want to use dynamic content in the body with a link to the new page which was created. I used the "pages content URL" dynamic content object for this. This all seems to be working, however, when I click the link, I receive the following error:

 

{
"error": {
"code": "40001",
"message": "The request does not contain a valid authentication token.",
"@api.url": "https://aka.ms/onenote-errors#C40001"
}
}

 

...When I visited the api.url it says the following about this error...

40001
The request doesn't contain a valid OAuth token. See Notes permissions.

...I tried explicitly sharing the notebook with the team on onedrive, but it's still not working. Can you please help me fix this permission issue?

1 Reply

I've got exactly the same error... and asking help at Flow forum now:

https://powerusers.microsoft.com/t5/Building-Flows/bd-p/BuildingFlows