How to get logged in business account id in acumatica portal?

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

Upvotes: 3

Views: 1184

Answers (2)

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

Upvotes: 0

Gabriel
Gabriel

Reputation: 3783

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>

Upvotes: 4

Related Questions