Question

How to get Branch and Company IDs via SOAP API

  • 23 November 2021
  • 1 reply
  • 27 views

Is there any glossary of complete customer object fields? I’m using SOAP API and some of the fields aren’t coming with the getSchema object and I have to find them by searching through Acumatica question/answers but I don’t know where they are listed properly??

 

So far I found:

LastModifiedDateTime

CreatedDateTime

Now looking for Branch and Company IDs but don’t know the exact field names.. any help?


1 reply

Userlevel 1
Badge

Hi @adilaleem 

Its not possible to get the BranchID and CompanyID through the API call. But we can get the current company ID and BranchID using the below code.

  int? companyId = PXInstanceHelper.CurrentCompany;
 string branchID = AccessInfo.branchID;

 

Reply


About Acumatica ERP system
Acumatica Cloud ERP provides the best business management solution for transforming your company to thrive in the new digital economy. Built on a future-proof platform with open architecture for rapid integrations, scalability, and ease of use, Acumatica delivers unparalleled value to small and midmarket organizations. Connected Business. Delivered.
© 2008 — 2020  Acumatica, Inc. All rights reserved