Forum Discussion
Microsoft Teams: Need to Provide 'Edit in Teams' for Sharepoint Documents in Custom Tab
I need to provide option of 'Edit in Teams' in custom tab containing document library.
I have tried using
1. Deeplinks:
microsoftTeams.executeDeepLink('https://teams.microsoft.com/_#/docx/viewer/teams/https:~2F~2Ftenant.sharepoint.com~2Fsites~2FTestTeam~2FShared%20Documents~2FCustom~2FContractExecutableTemplate.docx?threadId=19:7ba74a73a2d04bb19bc417e52c1f5101@thread.skype&baseUrl=https:~2F~2Ftenant.sharepoint.com~2Fsites~2FTestTeam&fileId=603F7416-260C-44FA-AE8E-1E4B7D4C2AC0&ctx=files&viewerAction=edit')"
but it gives error and also directly opening url like
2. Directly use deeplink url
"https://teams.microsoft.com/l/_#/docx/viewer/teams/https:~2F~2Ftenant.sharepoint.com~2Fsites~2FTestTeam~2FShared%20Documents~2FCustom~2FContractExecutableTemplate.docx?threadId=19:7ba74a73a2d04bb19bc417e52c1f5101@thread.skype&baseUrl=https:~2F~2Ftenant.sharepoint.com~2Fsites~2FTestTeam&fileId=603F7416-260C-44FA-AE8E-1E4B7D4C2AC0&ctx=files&viewerAction=edit"
but it gives launcher page instead of opening the app
Since there is no proper documentation of executeDeepLink any help would be appreciated.
1 Reply
- You have a document library in a tab? Why not have users just select the file it should open there in the tab using office online inside of teams for editing?