3

I am trying to filter the catalog item based on logged in customer business account. How do i get the logged in customer business account value in acumatica portal?

Regards, R.Muralidharan

  • 1
    I have used the following statement to get the logged in user business account Guid id = PXAccess.GetUserID(); Contact contact = PXSelect>>>.Select(Base, id); is there any better option available – Muralidharan Ramakrishnan Mar 29 '16 at 16:58

2 Answers2

4

As you've found out, PXAccess.GetUserID() allows you to get this information, but you can also use the AccessInfo DAC in BQL queries:

Current<AccessInfo.userID>
Current<AccessInfo.userName>
Gabriel
  • 3,733
  • 16
  • 29
0

I have used Base.currentCustomer.BAccountID and it works fine