Hi All,
Need to know how to get the currently logged CompanyID and BAccountID in the graph extension.
Can someone help me out?
Thanks
Bhagya
Best answer by jinin
View originalHi All,
Need to know how to get the currently logged CompanyID and BAccountID in the graph extension.
Can someone help me out?
Thanks
Bhagya
Best answer by jinin
View originalHi
The Instance helper will provide the CompanyID
int? companyId = PXInstanceHelper.CurrentCompany;
For UserId and Username, you can obtain them from the AccessInfo
string userName = Base.Accessinfo.UserName;
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.