SharePoint 页面未在 MS Teams 下应用程序的个人选项卡中加载

问题描述 投票:0回答:1

我创建了一个 Teams 应用程序并添加了一个 SharePoint 页面作为 Teams 个人选项卡。

我已参考以下链接进行相同的操作,

https://aakashbhardwaj619.github.io/2020/01/16/Add-SharePoint-Site-To-Teams-Personal-App.html

https://www.c-sharpcorner.com/article/sharepoint-site-as-static-app-in-ms-teams/

我的 SharePoint 页面在 Teams 应用程序中抛出错误。请参考下面的截图,

任何人都可以帮助我吗?

谢谢

sharepoint tabs microsoft-teams sharepoint-online
1个回答
0
投票

在 Teams 中集成 SharePoint 内容的唯一官方支持的机制是内置 SharePoint、SharePoint 页面和列表应用程序,如下所述: https://support.microsoft.com/en-us/office/add-a-sharepoint-page-list-or-document-library-as-a-tab-in-teams-131edef1-455f-4c67-a8ce -efa2ebf25f0b

或者使用 Viva Connections 获得与您在此处尝试创建的门户体验类似的门户体验: https://learn.microsoft.com/en-us/viva/connections/edit-viva-home#choose-the-default-landing-experience-for-viva-connections-desktop

仅基于 SPFx 的解决方案支持使用自定义应用程序,在这种情况下,创建应用程序清单时需要遵循非常具体的准则: https://learn.microsoft.com/en-us/sharepoint/dev/spfx/deployment-spfx-teams-solutions#developer-provided-microsoft-teams-app-manifest--package

最重要的要求是:

  1. TeamsLogon.aspx 重定向应用于处理身份验证。对于此 IcM 票证中提供的示例应用程序,contentUrl 应如下所示:
    https://{teamSiteDomain}/_layouts/15/TeamsLogon.aspx?SPFX=true&dest=/sites/TestTeam
    
  2. 应将 webApplicationInfo 部分添加到清单中,如下所示:
    "webApplicationInfo": {
      "resource": "https://{teamSiteDomain}",
      "id": "00000003-0000-0ff1-ce00-000000000000"
    }
    

注意:请勿替换 {teamSiteDomain} 占位符;团队将在运行时自动执行此操作。

重要提示:这确实不应该用于集成 SPFx Web 部件以外的任何内容,在这种情况下,团队应用程序清单通常会以正确的格式自动生成。它适用于其他现代 SharePoint 页面,但将来可能会崩溃并使您的用户陷入困境。使用风险自负。

© www.soinside.com 2019 - 2024. All rights reserved.