---
schema_version: "1"
id: 52585e5fe8022b0d494eb6043ef1b3afdb4bc0951df533ce463adfcd918bee12
title: AccountingFieldMapping
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/api_meta/meta_accountingfieldmapping.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_accountingfieldmapping.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 4c62ac99abf0435b284c2f869f74e9baa0098d0a60a5b9c203434199fb7719e9
description: Represents the accounting field mappings to organize your data and bring it to ledger entry records.
---
# AccountingFieldMapping

Represents the accounting field mappings to organize your data and bring it to ledger entry records.

![Important](https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/images/icon_note_important.png)

#### Important

Where possible, we changed noninclusive terms to align with our company value of Equality. We maintained certain terms to avoid any effect on customer implementations.

## Parent Type

This type extends the [Metadata](https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/metadata.htm "The base class for all metadata types. You can’t edit this object. A component is an instance of a metadata type.") metadata type and inherits its fullName field.

## File Suffix and Directory Location

AccountingFieldMapping components have the suffix .accountingFieldMapping and are stored in the accountingFieldMappings folder.

## Version

AccountingFieldMapping components are available in API version 58.0 and later.

## Fields

| Field Name | Description |
| --- | --- |
| accountingModelConfig | 
Field Type

string

Description

Required.

Record ID of the AccountingModelConfig record that the Field Mapping is associated with.



 |
| isForAllocationType | 

Field Type

boolean

Description

Reserved for internal use.



 |
| isForPaymentType | 

Field Type

boolean

Description

Reserved for internal use.



 |
| isForTransactionType | 

Field Type

boolean

Description

Reserved for internal use.



 |
| isProtected | 

Field Type

boolean

Description

Indicates whether this component is protected (true) or not protected (false).

Default value is false.





 |
| mappingBehavior | 

Field Type

MappingBehaviorType (enumeration of type string)

Description

Required.

Specifies how the target’s field data is mapped from the source field only when the journal entry is created. When set to CurrentValue, Subledger reverses and replaces journal entries whose value differs from the value in sourceField.

Valid values are:

- CurrentValue
- PointInTime





 |
| masterLabel | 

Field Type

string

Description

Required.

A user-friendly name for AccountingFieldMapping, which is defined when the AccountingFieldMapping is created.



 |
| sourceField | 

Field Type

string

Description

The API name of the field on the source object that is mapped to the target field.



 |
| targetField | 

Field Type

string

Description

Required.

The API name of the field on the Transaction Journal record for this mapping.



 |

## Declarative Metadata Sample Definition

The following is an example of an AccountingFieldMapping component.

<?xml version="1.0" encoding="UTF-8"?>
<AccountingFieldMapping xmlns="http://soap.sforce.com/2006/04/metadata">
	<accountingModelConfig\>ModelConfigOne</accountingModelConfig\>
	<fullName\>FieldMappingOne</fullName\>
	<masterLabel\>FieldMappingOne</masterLabel\>
	<isForAllocationType\>true</isForAllocationType\>
	<isForPaymentType\>true</isForPaymentType\>
	<isForTransactionType\>true</isForTransactionType\>
	<mappingBehavior\>PointInTime</mappingBehavior\>
	<sourceField\>TransactionJournal.MappingTargetOne\_\_c</sourceField\>
	<targetField\>MappingTargetOne\_\_c</targetField\>
	<isProtected\>false</isProtected\>
</AccountingFieldMapping\>

The following is an example package.xml that references the previous definition.

<?xml version="1.0" encoding="UTF-8"?>
<Package
	xmlns="http://soap.sforce.com/2006/04/​metadata">
	<types\>
		<members\>FieldMappingOne</members\>
		<name\>AccountingFieldMapping</name\>
	</types\>
	<version\>58.0</version\>
</Package\>

## Wildcard Support in the Manifest File

This metadata type supports the wildcard character \* (asterisk) in the package.xml manifest file. For information about using the manifest file, see [Deploying and Retrieving Metadata with the Zip File](https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/file_based_zip_file.htm "The deploy() and retrieve() calls are used to deploy and retrieve a .zip file. Within the .zip file is a project manifest (package.xml) that lists what to retrieve or deploy, and one or more XML components that are organized into folders.").