Change in behavior related to SharePoint generated SmartObjects.
KB001383
PRODUCT
Introduction
Generating a SmartObject based on a SharePoint List or Library incorrectly used the SharePoint List or Library Display name for the Service Object and SmartObject system name. When renaming the SharePoint List or Library the corresponding SharePoint V2 SmartObject would no longer function. As from K2 4.6.5 the SharePoint List or Library Internal Name will be used for the creation of the SharePoint V2 Service Object and corresponding SmartObject. This will ensure that the SmartObject can be executed correctly even after renaming the SharePoint List or Library name.
All Service Instances and Service Objects created pre-4.6.5 will not be affected and users that upgrade to K2 4.6.5 will only get this behaviour for new Service Instances and Service Objects.
Current Behavior
The steps below will explain the current behavior:
- Create a SharePoint List or Library and supply the name List A for example.
- Generate a SmartObject based on List A from K2 Site Settings on the SharePoint Site.
- Use the SmartObject in a process.
- Rename List A to List AA.
- Refresh the SmartObject Service Instance by opening the Create SmartObject page from K2 Site Settings.
- When attempting to use the SmartObject again based on the renamed SharePoint List or Library, an error will occur.
New Behavior
The steps below will explain the new behavior:
- Create a SharePoint List or Library and supply the name List A for example.
- Generate a SmartObject based on List A from K2 Site Settings on the SharePoint Site.
- Use the SmartObject in a process.
- Rename List A to List AA.
- Refresh the SmartObject Service Instance by opening the Create SmartObject page from K2 Site Settings.
- The SmartObject based on the renamed SharePoint List or Library can be used without experiencing errors, as the SharePoint List or Library Internal Name will remain the same.
Resolution
This Hotfix is contained within the Latest Update. Install the update package to resolve the issue.
Important Considerations
SmartObjects used based on a renamed SharePoint List or Library before upgrading to K2 4.6.5 will still result in errors after upgrading K2. Only new SharePoint Generated SmartObjects created after upgrading to K2 4.6.5 will use the SharePoint List or Library Internal Name and will not be affected after renaming the SharePoint List of Library.