Need the Agent Login Name


Hello all,

I have created an Global Addin I need to pass the Agent login name to of of the URl i have coded in the Code.

Am Not able to figure out how can i access the logined username.

Any Suggestions ?



The agent login name (and ID) are available under the global context (which is passed in via the Initialize method).

public bool Initialize(IGlobalContext context)
  string login = context.Login;
  int agent_id = context.AccountID;
  return true;

Thanks Andy that worked for me ..

-- Gurpreet Singh

use a ROQL query:

SELECT curAdmin()

Zircon - This is a contributing Drupal Theme
Design by WeebPal.