Magidoc

getFinanceControlAccountOptions
Query

Lists the accounts finance setup offers for one control-account slot, without their balances.

The eligibility rule is the slot's, so kind decides what comes back: the four liability kinds return the workspace's active other current liabilities, while accountsReceivableAccountId and revenueAccountId return accounts of their own type. Omitting it keeps the original answer — the other current liabilities — for callers that predate the per-slot pickers.

Access: Requires the finance feature and the setup update permission — the same permission updateSetupDefaults enforces, so anyone shown this picker can save what it offers.

Errors: Throws when the user is not logged in, the workspace has finance disabled, or the user lacks the setup update permission.

Arguments

#

workspaceId

ID !
Non-null

Response

#

Returns [FinanceControlAccountOption !]!.

Example

#