Solved

Get all accounts under a particular account group

  • 9 March 2023
  • 1 reply
  • 40 views

Userlevel 1
Badge

I am trying to write a PXSelect to fetch the accounts under the account group screen Id PM201000.

I found the table for the Account Group (PMAccountGroup) but not able to find a way to get only the accounts tab records as it is a  VirtualDAC anyone can see a way here ?

Also the VirtualDac does not a GroupId to fetch the related records.

icon

Best answer by aaghaei 9 March 2023, 18:30

View original

1 reply

Userlevel 7
Badge +8

Look into Account DAC and filter on AccountGroupID. Always child DACs inherits the parent DAC keys not the opposite.

You should select from Account where Account.AccountGroupID.IsEqual<PMAccountGroup.GroupID.FromCurrent>

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 — 2024  Acumatica, Inc. All rights reserved