-
spfx-teamslink is a SPFX Application Customizer Extension that add a Conversations/Become a member link to community pages on gcxchange based on user membership to group. It also hide the teams icon next to the title.
-
You need to update the hubSiteIds property with comma seperated GUIDs for your valid hubs. You can do so in the serve.json file or from the tenant wide exstensions list when deployed.
-
You need to update the teamslinkId in TeamsLinkApplicationCustomizer.ts to avoid duplication.
-
You need to maitain a SharePoint list and store the value of teams id and teams link of each teams site where you want to apply this extension.
- spfx-teamslink is intended to be deployed tenant wide.
- A SharePoint list should created with the following fields and store the value of teams id and teams link of each teams site where you want to apply this extension.
Column Name | Field Type |
---|---|
Teamslink |
Single line of text |
TeamsID |
Single line of text |
- Created List's URL should given as value of TeamsListUrl in TeamsLinkApplicationCustomizer.ts
- Microsoft Graph, User.ReadBasic.All
- Microsoft Graph, Team.ReadBasic.All
- Microsoft Graph, Channel.ReadBasic.All
Get your own free development tenant by subscribing to Microsoft 365 developer program
Version | Date | Comments |
---|---|---|
1.0 | Dec 9, 2021 | Initial release |
1.1 | March 25, 2022 | Next release |
1.3 | October 25, 2023 | Upgraded to SPFX 1.17.4 |
- Clone this repository
- Ensure that you are at the solution folder
- Ensure the current version of the Node.js (16.3+)
- in the command-line run:
- npm install
- in the command-line run:
- Create a SharePoint list with the following fields and store the value of teams id and teams link of each teams site where you want to apply this extension.
Column Name | Field Type |
---|---|
Teamslink |
Single line of text |
TeamsID |
Single line of text |
-
Give created list's url as the value of the TeamsListUrl in TeamsLinkApplicationCustomizer.ts.
-
To debug
- go to the
config\serve.json
file and updatepageUrl
to url of any teams site - in the command-line run:
- gulp clean
- gulp serve
- go to the
-
To deploy:
- in the command-line run:
- gulp clean
- gulp bundle --ship
- gulp package-solution --ship
- in the command-line run:
-
Upload the extension from
\sharepoint\solution
to your tenant's app store -
To add or modify extension properties
- Go to Modern Appcatalog
- Click ...More features in the left side
- Open the tenant wide Extension
- Edit the hubSiteIds under the title called TeamsLink
THIS CODE IS PROVIDED AS IS WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.