OfficeDev / microsoft-teams-apps-champion-management

Champion Management Platform is a custom Teams app that enables organizations to onboard and maintain champions/ SME in their organization in Teams.
MIT License
130 stars 49 forks source link

Multiple instances of the CMP in the same Sharepoint tenant? #114

Closed PhantomMenace25 closed 2 years ago

PhantomMenace25 commented 2 years ago

Hello,

We are attempting to install a second instance of the CMP for a different functionality within the same Sharepoint tenant.

I have followed the customization steps to repackage the product after changing the Sharepoint site location and logo files. However, when I attempt to upload to Sharepoint Apps, I am met with the following error:

image

Is there something in the configuration that can be edited to alter the package ID so that two instances of this product can exist in the same environment?

Thank you!

v-saikirang commented 2 years ago

Hi @PhantomMenace25,

Thanks for reaching out to us.

It's not straight forward to deploy a second instance of the same web part in a tenant. Please refer to this article:https://www.c-sharpcorner.com/article/deploy-multiple-instance-of-spfx-webpart-in-same-app-catalog/

Apart from the above steps there are few other steps tat you need to perform. 1) Modify the ID in the manifest.json under "Teams" folder with the same ID as the one in CLBHomeWebPart.manifest.json. 2) Delete the "TeamsSPFXApp.zip" and re generate a new one with the manifest and 2 image files under "Teams" folder. This zip should only have 2 files and no nested folders. 3) Modify the "sitename" property in the siteconfig.json under "config" folder. This will create a new sharepoint site to avoid conflicts with existing site. 4) After making all the changes re generate the package and try deploying again.

Please let us know if you need additional information. Thanks.

v-saikirang commented 2 years ago

Hi @PhantomMenace25,

I just to highlight one more point here. Once you have customized version of the app any further upgrades to the app released in git hub will not automatically pass over to your custom installed version. All the upgrades to the code will have to be manually copied over and maintained by your team. Please consider this if you are planning for a custom version.

Please let me know if you need more information. Else we would like to close this ticket in next 2 days. Thanks.

PhantomMenace25 commented 2 years ago

Thank you for your assistance with this issue and mentioning the above considerations.

You can go ahead and close out the request.

Thanks!

v-saikirang commented 2 years ago

Thanks for your confirmation. Closing out this ticket.