How to get companyid in Acumatica

Hello everybody,

today I want to share how to find current company id in Acumatica:

Here it is:

int? companyid = PX.Common.PXContext.GetSlot<Int32?>("singleCompanyID")

for me it was long way to find it

No Comments

Add a Comment