Code Fix: Copying a document to another Library using the Copy Document Event, reverts the Content Type back to the default
KB001910
PRODUCT
Issue Description
When using the Copy/Move Document Event in a workflow to either copy or move a document from one SharePoint Library to another, using a document with a Content Type other than the default “Document” will result in the Content Type reverting back to the default in the destination Library. For example, uploading an Image as the Content Type in the source Library and copying the image to the destination Library will result in the Content Type of the Image to display as Document.
Cause
The Content Type was not set as an input property which resulted in the Content Type not being transferred to the upload call.
Resolution
- Ensure you have K2 4.7 installed.
- Download and Install the K2 4.7 May 2017 Cumulative Update from K2 Partner and Customer Portal.
- Get the K2 4.7 May 2017 Cumulative Update FP2 from Regional Support.
- Install the K2 4.7 May 2017 Cumulative Update FP2 to apply the fix.
- Ensure the destination document library has the same Content Types available as the source library.
- Regenerate the SmartObjects on both the source and the destination libraries.