MSDN > 論壇首頁 > SharePoint - Workflow > Setting Initiator In Comments
發問發問
 

問題Setting Initiator In Comments

  • 2009年7月2日 下午 02:44wexford 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     
    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".
    • 已編輯wexford 2009年7月2日 下午 02:45re-phrased
    •  

所有回覆

  • 2009年7月2日 下午 09:19David Mann [MVP]MVP, 版主使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     
    VS Wfs always run as SYSTEM.  You can do impersonation or RunWithElevatedPrivileges in code if you need to.
  • 2009年7月6日 上午 09:39wexford 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     
    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.