FieldMapping

Represents a mapping between fields in an object in the org and fields in a data service. A data service uses two separate field maps: one controls how the data service matches records in an object, and the other controls how the data service adds or updates data for an existing record.

Version 

Introduced in API version 38.0.

Supported SOAP API Calls 

create(), delete(), describeSObjects(), query(), retrieve(), update(), upsert()

Supported REST API Methods 

DELETE, GET, HEAD, PATCH, POST, Query

Fields 

DeveloperName 

  • Type: string

  • Required: No

  • Properties: Create, Filter, Group, Sort, Update

  • Description: A unique name for this FieldMapping. This name can contain only underscores and alphanumeric characters, and must be unique in your org. It must begin with a letter, not include spaces, not end with an underscore, and not contain two consecutive underscores. Provides a globally unique identifier for the FieldMapping, which prevents conflicts with FieldMapping objects from other packages that have the same MasterLabel.

    Only users with View DeveloperName OR View Setup and Configuration permission can view, group, sort, and filter this field.

    Note

FieldMappingClientId 

  • Type: reference

  • Required: No

  • Properties: Create, Filter, Group, Sort, Update

  • Description: A foreign key reference to a CleanRule that uses this FieldMapping.

  • Relationship name: FieldMappingClient

  • Relationship type: relationship

  • Refers to: CleanRule

Language 

  • Type: picklist

  • Required: No

  • Properties: Create, Defaulted on create, Filter, Group, Nillable, Restricted picklist, Sort, Update

  • Description: The language of the FieldMapping. The following values are supported:

  • Chinese (Simplified): zh_CN

  • Chinese (Traditional): zh_TW

  • Danish: da

  • Dutch: nl_NL

  • English: en_US

  • Finnish: fi

  • French: fr

  • German: de

  • Italian: it

  • Japanese: ja

  • Korean: ko

  • Norwegian: no

  • Portuguese (Brazil): pt_BR

  • Russian: ru

  • Spanish: es

  • Spanish (Mexico): es_MX Spanish (Mexico) defaults to Spanish for customer-defined translations.

  • Swedish: sv

  • Thai: th The Salesforce user interface is fully translated to Thai, but Help is in English.

  • Possible values:

    • en_US — English

    • de — German

    • es — Spanish

    • fr — French

    • it — Italian

    • ja — Japanese

    • sv — Swedish

    • ko — Korean

    • zh_TW — Chinese (Traditional)

    • zh_CN — Chinese (Simplified)

    • pt_BR — Portuguese (Brazil)

    • nl_NL — Dutch

    • da — Danish

    • th — Thai

    • fi — Finnish

    • ru — Russian

    • es_MX — Spanish (Mexico)

    • no — Norwegian

MasterLabel 

  • Type: string

  • Required: No

  • Properties: Create, Filter, Group, Sort, Update

  • Description: Master label for this object. This display value is the internal label that is not translated.

SobjectType 

  • Type: picklist

  • Required: No

  • Properties: Create, Filter, Group, Restricted picklist, Sort

  • Description: An object that’s acted on by this FieldMapping. The set of picklist values includes all the standard and custom object types in your org. However, if you specify an object that the data service doesn’t support, the API call returns an error.

DID THIS ARTICLE SOLVE YOUR ISSUE?
Let us know so we can improve!