Introduction

When configuring SharePoint Events in a K2 process, the Created Date, Created By and Modified By metadata does not return for documents and list items in the SharePoint Event wizards.  This specifically applies to the SharePoint List Items Event, SharePoint Search Event and the Item Reference Event.

Error Scenario

1.    SharePoint List Items Event

  • Create a new K2 Workflow Project in K2 Designer for Visual Studio.
  • Drag the SharePoint List Items Event to the design canvas.
  • Select the Get List Items action and click next.
  • Specify the required values.  Ensure that no Content Type is specified on this screen and click next.
  • Note that the Created Date, Created By and Modified By metadata does not return for configuration.

2.    SharePoint Search Event

  • Create a new K2 Workflow Project in K2 Designer for Visual Studio.
  • Drag the SharePoint Search Event to the design canvas.
  • Select the Search in a SharePoint List or Library option and click next.
  • Specify the required values and click next.
  • Add a Filter.
  • Note that when clicking on the dropdown next to Field, the Created Date, Created By and Modified By metadata does not return in the dropdown as available data.

3.    Item Reference Event

  • Create a new K2 Workflow Project in K2 Designer for Visual Studio.
  • Drag the Item Reference Event to the design canvas.
  • Select the SharePoint List Item Reference action and click next.
  • Specify the List Settings and click next.
  • Note that the Created Date, Created By and Modified By metadata does not return on the mappings screen of the wizard as available data.

Resolution

This Hotfix is contained within the Latest Update. Install the update package to resolve the issue.

Note that for the SharePoint List Items event, the Created Date, Create By and Modified By metadata will only return when the Get List Items action is used.