locked
Get username while delete event in plugin RRS feed

  • Question

  • While creating a entity record I am able to get the username  (the one user is logged in).

    I can get in from SystemUser entity using execution context UserId. 

    But for some strange reason it is impossible to get it once plugin event is fired on delete. It is returning empty string.

    How it is possible yo get the username in plugin code on entity record delete.

    Thanks.


    • Edited by A_M_H Tuesday, August 21, 2012 5:01 PM
    Tuesday, August 21, 2012 4:58 PM

Answers

  • Hi Abijah,

    Did you try IPluginExecutionContext.InitiatingUserId property??

    Thanks,

    Palani

    • Marked as answer by A_M_H Tuesday, August 21, 2012 6:33 PM
    Tuesday, August 21, 2012 6:21 PM

All replies

  • Hi Abijah,

    Did you try IPluginExecutionContext.InitiatingUserId property??

    Thanks,

    Palani

    • Marked as answer by A_M_H Tuesday, August 21, 2012 6:33 PM
    Tuesday, August 21, 2012 6:21 PM
  • Seems this is exactly what I was looking for.

    Thanks.

    Tuesday, August 21, 2012 6:33 PM