AccountingModelConfig defines how Accounting Subledger maps a financial data model to a logical data model and generates Transaction Journal records. It combines the source-object mapping with processing eligibility, revenue or expense treatment, and journal grouping rules.
The configuration controls journal generation; it is not a Transaction Journal record itself. Its activation setting and usage history are also distinct: isActive controls eligibility for processing, while isUsed records whether the model has ever been used or activated and imposes restrictions on changes to its object structure.
Key Elements
| Element | What the Element Controls |
|---|---|
accountingType | Required. Determines whether the accounting set generates Revenue or Expense transaction journal records. |
isActive | Required boolean. Controls whether the accounting model is eligible for processing when the Subledger Job runs. |
isUsed | Required boolean. Records whether the model has been used or activated at least once. When true, the selected objects and number of associated objects cannot be changed. |
internalMappingDetails | Required string containing the financial data structure in JSON, a structured text format. Its contents identify the objects participating in the mapping. |
earliestCreatedDate | Required dateTime. Includes only source records created on or after this cutoff. |
recordTypeFilter | Case-sensitive string specifying record type IDs from the primary object. If unspecified, processing is not restricted by record type. |
expectedCashFlowGrouping | Groups expected cash flows by fund account with GroupByFundAccount, or by fund account and due date with GroupByFundAndDueDate. Changes apply only to records created or reversed afterward. |
paidCashFlowGrouping | Controls journal detail. Allowed values are GroupByFundAccount and GroupBySummary; their effects depend on the journal entries and accounting treatment. |
runOrder | Integer determining the processing sequence for multiple accounting models. Lower numbers run first. |
defaultAccrualAccountCode | Supplies the accounting system's default accrual account code. |
defaultWriteOffAccountCode | Identifies the account for written-off payments. |
Behavior and Constraints
Activation does not reset usage history
isActive controls whether the Subledger Job processes the model. isUsed serves a different purpose: it indicates whether the model has been used or activated at least once.
When isUsed is true, you cannot select another object for the object model or change the number of associated objects. Deactivating the model does not remove this usage-based structural restriction. Evaluate object-model changes separately from changes to processing or grouping settings.
The two grouping settings have different effects
expectedCashFlowGrouping determines whether expected cash flows are grouped by fund account alone or by fund account and due date. Changing it does not regroup existing records. Only records created or reversed after the change are affected.
paidCashFlowGrouping determines the detail of generated journals:
GroupByFundAccountsplits all transaction journal records into fund accounts. It creates secondary records for payment type records, but not for transaction type records.GroupBySummarysplits only revenue credits and expense debits by fund account.
Interpret paidCashFlowGrouping together with accountingType, because the summary behavior distinguishes revenue from expense entries.
Filters apply to source-record creation and record type
earliestCreatedDate filters on the source record's creation date, not its transaction date or due date. Records created before the cutoff are outside the processing scope.
recordTypeFilter further narrows that scope to specified record type IDs on the primary object. Leaving it unspecified removes the record type restriction, but does not remove the creation-date cutoff.
runOrder is an execution sequence, not a display order. When multiple accounting models are processed, lower numbers run before higher numbers.
Internal settings are not alternative controls
financeBook, isGroupedByFundAccount, and jobFilterCriteria are reserved for internal use. Do not interpret them as substitutes for the documented grouping and filtering elements.
Deployment and Retrieval
Components use the .accountingModelConfig suffix and reside in the accountingModelConfigs folder. For example, a component named ModelConfigOne uses the file accountingModelConfigs/ModelConfigOne.accountingModelConfig.
In package.xml, use AccountingModelConfig as the type name. The manifest can select an individual member, such as ModelConfigOne, or use * to select all members of this type.
The component inherits fullName as its metadata name. Its required masterLabel is the user-friendly name defined when the configuration is created.
Two parts of the configuration need particular attention when moving it between orgs:
- Record type IDs:
recordTypeFiltercontains case-sensitive IDs, not developer names. Account for the primary object's record type IDs in the destination org rather than treating the filter as a portable name-based reference. - Mapping contents and usage state:
internalMappingDetailsmust contain the financial structure as JSON within a string element. Read that mapping to identify participating objects and assess structural changes. IfisUsedistrue, changing the selected objects or their count is restricted.
A deployment that changes expectedCashFlowGrouping changes behavior for records created or reversed afterward; it does not imply that previously generated journals have been regrouped.
Relationships
The source-object dependencies are carried in the JSON stored in internalMappingDetails. The element name alone does not identify which objects participate. Separately, recordTypeFilter associates processing with record type IDs from the model's primary object, rather than with record type developer names.
Common Questions
Can I deactivate an accounting model and then change its objects?
Deactivation does not remove the restriction tied to isUsed. When isUsed is true, you cannot select another object or change the number of associated objects, regardless of the current isActive setting.
Does changing expected cash flow grouping update existing journals?
No. Changing expectedCashFlowGrouping affects only records created or reversed afterward. Existing records are not regrouped by the setting change.
Does an empty record type filter process every source record?
It removes the record type restriction, but earliestCreatedDate still applies. Only records created on or after that cutoff are considered.
Why does the record type filter need attention when deploying to another org?
recordTypeFilter stores case-sensitive record type IDs from the primary object, not developer names. Deployment planning must account for the destination org's IDs.
Can I retrieve AccountingModelConfig with a wildcard?
Yes. Use AccountingModelConfig as the type name and * as the member in package.xml. Components use the .accountingModelConfig suffix in the accountingModelConfigs folder.