Using Graph API to create a OneNote tab in a Teams Channel
Hello,
I’m trying to create a new tab in an existing channel that opens a OneNote notebook using Graph API. According to official documentation (https://learn.microsoft.com/en-us/graph/api/channel-post-tabs?view=graph-rest-1.0&tabs=http), the call should look like this:
POST https://graph.microsoft.com/v1.0/teams/{team-id}/channels/{channel-id}/tabs
{
“displayName”: “OneNote”,
“email address removed for privacy reasons” : “https://graph.microsoft.com/v1.0/appCatalogs/teamsApps/0d820ecd-def2-4297-adad-78056cde7c78”,
“configuration”: {
“entityId”: “<Notebook_id>”,
“contentUrl”: “<OneNote_notebook_url>”,
“websiteUrl”: “<OneNote_notebook_url>”
}
}
It worked smoothly, but since recently, when you open the tab in Teams (desktop or web), it shows an error message stating that “the application can’t be reached”. In the end, the tab is created but OneNote notebook is not opened.
Reading the official documentation here: https://learn.microsoft.com/en-us/graph/teams-configuring-builtin-tabs#onenote-tabs it mentions that when creating OneNote tabs, “configuration is not supported“. Does this mean now you can’t specify the OneNote notebook to open in the tab using Graph API?
Any suggestions or recommendations?
Thanks in advance!
Ferran
Hello,I’m trying to create a new tab in an existing channel that opens a OneNote notebook using Graph API. According to official documentation (https://learn.microsoft.com/en-us/graph/api/channel-post-tabs?view=graph-rest-1.0&tabs=http), the call should look like this: POST https://graph.microsoft.com/v1.0/teams/{team-id}/channels/{channel-id}/tabs
{
“displayName”: “OneNote”,
“email address removed for privacy reasons” : “https://graph.microsoft.com/v1.0/appCatalogs/teamsApps/0d820ecd-def2-4297-adad-78056cde7c78”,
“configuration”: {
“entityId”: “<Notebook_id>”,
“contentUrl”: “<OneNote_notebook_url>”,
“websiteUrl”: “<OneNote_notebook_url>”
}
} It worked smoothly, but since recently, when you open the tab in Teams (desktop or web), it shows an error message stating that “the application can’t be reached”. In the end, the tab is created but OneNote notebook is not opened.Reading the official documentation here: https://learn.microsoft.com/en-us/graph/teams-configuring-builtin-tabs#onenote-tabs it mentions that when creating OneNote tabs, “configuration is not supported”. Does this mean now you can’t specify the OneNote notebook to open in the tab using Graph API?Any suggestions or recommendations?Thanks in advance!Ferran Read More