blog icon indicating copy to clipboard operation
blog copied to clipboard

Create and add a OneNote tab to your Microsoft Teams team channel using Power Automate + Graph API

Open utterances-bot opened this issue 1 year ago • 2 comments

Create and add a OneNote tab to your Microsoft Teams team channel using Power Automate + Graph API

I was asked to share how I have been adding new OneNote tabs to a team channel in Microsoft Teams using Power Automate + Graph API.

https://pnp.github.io/blog/post/create-and-add-a-onenote-tab-to-your-microsoft-teams-team/

utterances-bot avatar Nov 15 '24 07:11 utterances-bot

I know this is a old thread but I've been strugling with this. I can get the weburl of the notebook or section of the notebook but if I try to use the url directly on the api call, just get a tab that cant reach the app.

Am I missing something here or has microsoft changed something? Where do you use the notebook/section ID in the "add notebook to channel" api call as I cant see it in your example?

NeLeSism avatar Nov 15 '24 07:11 NeLeSism

Something changed. It used to work but a Sept 2024 post indicates programmatically creating OneNote tabs is no longer supported: https://techcommunity.microsoft.com/discussions/teamsdeveloper/using-graph-api-to-create-a-onenote-tab-in-a-teams-channel/4219838

The post links to this page as its "explanation": https://learn.microsoft.com/en-us/graph/teams-configuring-builtin-tabs#onenote-tabs

Also can't create a notebook in a shared channel because they don't have a GroupId property. My workaround was to create the Notebook in the root Team instead and permission it like the shared channel, but even that's a waste as the new notebook can't ever have a tab provisioned and tbh, there's a reason we need Shared channels to manage this info and not standard or private channels. Totally unacceptable.

erobillard avatar Mar 28 '25 21:03 erobillard