Email submitter of document to MOSS Records Center

  • 18 February 2009
  • 1 reply
  • 0 views

Badge

Hi all,

 I'm brand new to K2, and this is my first post here, so be gentle.

 I'd like to build a process that triggers on new items that end up in Unclassified Records in my Records Center.  How can a get a handle to the person that submitted the document to the Records Center?  As far as I know, that information is only in the associated XML file, not the document properties.


1 reply

Badge +4

Hi


In your scenario the person that will submit the document to start the process will be your process Originator. From your K2 Object Browser in K2 for Visual Studio under the 'Workflow Context Browser'-> 'Process Instance' you will see a 'Originator' node. Under this node you can find different properties of the Originator such as his name, email, FQN and description. 


You can also get a handle on the process Originator in code by simply adding the follow line of code:


String oName = K2.ProcessInstance.Originator.Name.ToString();


I've added this line of code in a Default Server event.


I hope this helps, 

Reply