Ask a questionAsk a question
 

QuestionSetting Initiator In Comments

  • Thursday, July 02, 2009 2:44 PMwexford Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    How do I set the initiator in the comments of a custom workflow (built in VS 2008)?

    I can set other items with the Executor property but the Initiation of the workflow is always set to "System".
    • Edited bywexford Thursday, July 02, 2009 2:45 PMre-phrased
    •  

All Replies

  • Thursday, July 02, 2009 9:19 PMDavid Mann [MVP]MVP, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    VS Wfs always run as SYSTEM.  You can do impersonation or RunWithElevatedPrivileges in code if you need to.
  • Monday, July 06, 2009 9:39 AMwexford Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    David thank you for replying.

    Do you have an example?

    In other parts of the workflow I can set the User ID in the Workflow history (e.g. updating an assigned Task) to be a user name other than System but for the Initiation of the workflow there seems to be no way to set the User ID.