Determining which user initiated a Microsoft® SharePoint event

  • 24 February 2022
  • 0 replies
  • 3 views

Userlevel 3
Badge +8
 

Determining which user initiated a Microsoft® SharePoint event

KB000047

PRODUCT
K2.net 2003
TAGS
Microsoft SharePoint
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.

This article explains how to determine which user initiated a SharePoint event.

 

Normally, one could use the "Originator" to determine which user started a process. A SharePoint event however, is fired under the "ApplicationPool" account of the SharePoint site, and not the user who initiated the event. Therefore the ‘modified by’ field changes as soon as K2.net™ 2003 performs any action on the document.

To obtain the username of the person who initiated the SharePoint event, follow the steps outlined below:
1.   Add a new column in your SharePoint document library by clicking on the "Modify Settings and Columns" link and selecting the "Add a new column" link.
2.   Specify the column name and select "Calculated Value" under the "Default value" option. Set the value to "=Me", as indicated below:
 
 
3.   When a document is uploaded into SharePoint, the user’s name will automatically be populated in this new column.
4.   The new column’s value can now be used in the K2.net™ 2003 process when using a SharePoint process template wizard, as illustrated below:
 
 
 

 


0 replies

Be the first to reply!

Reply