How to upgrade the K2 for SharePoint App on a specific site collection (for SharePoint Online with multiple K2 environments)

  • 24 February 2022
  • 0 replies
  • 73 views

Badge +6
 

How to upgrade the K2 for SharePoint App on a specific site collection (for SharePoint Online with multiple K2 environments)

KB001853

PRODUCT
K2 blackpearl 4.7
K2 smartforms 4.7
LEGACY/ARCHIVED CONTENT
This article has been archived, and/or refers to legacy products, components or features. The content in this article is offered "as is" and will no longer be updated. Archived content is provided for reference purposes only. This content does not infer that the product, component or feature is supported, or that the product, component or feature will continue to function as described herein.

 

Introduction

Multiple K2 environments can integrate with different site collections on a single SharePoint tenant.  The site collections can be used for different business functions such as Production and Development, with each site collection integrating with a different K2 server. When upgrading to the latest K2 version, the Development K2 server is upgraded first as well as the development site collection, and the Production site collection remains on the previous version of K2. Use this article to learn how to upgrade K2 for SharePoint to the latest version and activate it on the Development site collections, without interrupting the site collections that need to remain on the previous version.  

 

 

Steps

Before attempting these steps, please read and understand the following precautions.

 

  1. After the K2 4.7 app is added to the app catalog site, do not run the Registration Wizard from the app catalog site against any of the site collection URLs that must remain on the previous version.
  2. Do not update any of the site collections associated with the previous version of the K2 server to the newer K2 4.7 app. 

Steps to Upgrade One Environment.
  1. Upgrade K2 blackpearl and SmartForms in the target environment (Development) to the latest K2 version, such as K2 4.7.
  2. Install the latest K2 for SharePoint app on the app catalog.
  3. Add the K2 for SharePoint app to the app catalog site.
     
    The expected behavior when attempting to access the K2 app on any of the site collections tied to the upgraded environment is the following message:
    K2 for SharePoint must be configured from the App Catalog. See KB001738 for more information. If you have multiple K2 blackpearl for SharePoint apps installed, keep the shared version only.Image
  4. Run the Registration Wizard and point it to the URL for the upgraded environment:
    Image

     
    The expected behavior when attempting to access the K2 App on any of the site collections tied to the upgraded environment is the following message:
    Site Collection is not activated. Contact your administrator to activate the site.
    Image
  5. Deploy the app to the selected site collections (Development) by typing the URL in the Enter a site collection to deploy to: field.  Do not deploy using the Managed Paths option.

    Image
  6. Active the app to the site collections that uses the upgraded environment.  Uncheck Enable auto-activation on sites where the app is deployed and activate to each site collection separately: 
    Image

The upgrade is complete. Test both the upgraded and non-upgraded site collections to ensure that the sites are working as expected. If upgrading to K2 4.7, the SharePoint site collection has a new Worklist icon in the ribbon when viewing a list or library.

Image
The non-upgraded site collections continue to use the previous app.  If the previous version is K2 4.6.11, then the K2 Settings page can still be accessed at the site collection level.
Image

 

 

Steps for Adding a new Site Collection that uses Legacy Mode (older version of K2)

  1. For a new site collection that must be integrated with the previous version of K2, add the app directly to the site collection (i.e. not through the app catalog >Manage App Deployments), and then navigate to the K2 Settings page from the site collection. You are presented with the following dialog. Click Switch to Legacy Mode.
     Image
  2. Run the Registration Wizard with the previous (e.g. 4.6.11) URL.  The site is configured to use the previous K2’s server version.

 

 

Steps for Rolling Back an Upgraded Environment

If it is necessary to roll back the upgraded environment, see the steps below:

  1. Rollback the K2 blackpearl and SmartForms environment to the previous K2 version (e.g. K2 4.6.11.)
  2. On the site collections that were upgraded, switch the K2 app to run in Legacy Mode. This reverts the K2 Settings page to the previous version where the Registration Wizard is available.
    Image

 

See KB001854 for steps on how to roll back the K2 for SharePoint App to use Legacy Mode.


0 replies

Be the first to reply!

Reply