Create and add a OneNote tab to your Microsoft Teams team channel using Power Automate + Graph API
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/
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?
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.