MSDN > Home page del forum > SharePoint - Workflow > Setting Initiator In Comments
Formula una domandaFormula una domanda
 

DomandaSetting Initiator In Comments

  • giovedì 2 luglio 2009 14.44wexford Medaglie utenteMedaglie utenteMedaglie utenteMedaglie utenteMedaglie utente
     
    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".
    • Modificatowexford giovedì 2 luglio 2009 14.45re-phrased
    •  

Tutte le risposte

  • giovedì 2 luglio 2009 21.19David Mann [MVP]MVP, ModeratoreMedaglie utenteMedaglie utenteMedaglie utenteMedaglie utenteMedaglie utente
     
    VS Wfs always run as SYSTEM.  You can do impersonation or RunWithElevatedPrivileges in code if you need to.
  • lunedì 6 luglio 2009 9.39wexford Medaglie utenteMedaglie utenteMedaglie utenteMedaglie utenteMedaglie utente
     
    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.