Forum Discussion
kikogeruk
Jul 04, 2024Copper Contributor
Adding SharePoint tab using graph not possible when pointing to folder
Hi all,
we are struggling to find a solution for this issue:
- We need to add a SPO folder as a tab to Team channel using Graph;
- We cannot use the website tab, as it produces authentication issues (401 - Unauthorized);
- It works fine when adding a library, but when adding a folder extension, this does not work and returns "Not Found";
- When trying to patch a folder path over an existing tab, it works for a couple of seconds and then reverts back to just the library.
Did anyone get this to work? Below our call:
https://graph.microsoft.com/beta/teams/[team]/channels/[channel]/tabs
{
"displayName": "[name]",
"email address removed for privacy reasons": "https://graph.microsoft.com/v1.0/appCatalogs/teamsApps/com.microsoft.teamspace.tab.files.sharepoint",
"configuration": {
"entityId": "",
"contentUrl": "https://[domain].sharepoint.com/sites/[site]/Shared%20Documents/General",
"websiteUrl": "https://[domain].sharepoint.com/sites/[site]/Shared%20Documents/General"
}
}
Has anyone managed to get this to work or reliably overcome the Unauthorized issue?
Cheers 🙂
Max
No RepliesBe the first to reply