Updating the K2 for SharePoint App per Site
KB001661
PRODUCT
This article only applies to versions of K2 for SharePoint prior to K2 4.7.
If the K2 for SharePoint App has been added to a SharePoint site and a newer version of K2 is installed, it is necessary to update the app on each of the SharePoint sites. If you do not update the app the runtime will continue to function, meaning the Worklist, Form Viewer, New/Edit/Display Forms of lists or libraries that had previously used the app's functionality will work. However, you will not be able to add the app to any new lists or libraries and will receive an error until you have updated the app on each site.
How to update the K2 for SharePoint App
- It is no longer necessary to upload the Full Control version of the app to the App Catalog due to updated permissions in SharePoint, namely Common Consent. This means that you must install the K2 for SharePoint app first using a SharePoint account that has Global (Tenant) Admin permissions, but from that point forward it can be a site owner. K2 for SharePoint 4.6.9 and later are effectively Full Control.
- To update the K2 for SharePoint App you will need to be the Site Collection Administrator in SharePoint. The System Account cannot be used to upgrade the App.
Planning your update
-
- Upgrade the first K2 Server to the new version.
- Update the K2 App on the app catalog to the new version.
- Update the K2 App on the related site collection and re-run the registration wizard.
The other environments can remain on the old K2 version till testing completes. Repeat the steps above for the other environments.
Steps to update the K2 for SharePoint App
There are three steps to updating the K2 for SharePoint app:
- In SharePoint 2013 navigate to Site Contents.
- Navigate to the K2 for SharePoint App, hover over the App until the 3 ellipsis appear, click on the ellipsis.
- Select the ‘About’ option to be redirected to the Upgrade App Page (Note: It can take a number of hours after upgrading your K2 environment for the K2 App to reflect the upgrade status). There are two versions of the App available: one for SharePoint on-premises which is installed via the App Catalog, and one version for SharePoint Online which is installed from the SharePoint Store.
- A new Version of the App will be available, click on the Get It button.
- The Trust validation screen will appear, click on Trust It.
- The App will be upgraded.
Troubleshooting
Issue: If the administrator has already upgraded the K2 environment to the latest version, or the registration wizard has not been run after the app has been updated you could get an error similar to the one below:
When you re-run the Registration Wizard from your K2 blackpearl for SharePoint page you will see a message displayed saying that a newer version of the App is available.
Resolution: Update the App by following the instructions above in the How to update the K2 for SharePoint App section.
Issue: When the K2 for SharePoint App is uninstalled and later reinstalled, the K2 App Parts i.e. the K2 Form Viewer App Part and the K2 Worklist App Part are no longer available.
Resolution: When the K2 for SharePoint App is uninstalled from the site, all App Parts such as the K2 Form Viewer App Part and K2 Worklist App Part, are also uninstalled. These App Parts are packaged with the K2 for SharePoint App. When the K2 for SharePoint App is reinstalled, the App Parts must be added manually to all sites where the K2 for SharePoint App was previously uninstalled.