Create a file import map

post

/crmRestApi/resources/11.13.18.05/importMappings

Request

Header Parameters
  • If the REST API supports runtime customizations, the shape of the service may change during runtime. The REST client may isolate itself from these changes or choose to interact with the latest version of the API by specifying this header. For example: Metadata-Context:sandbox="TrackEmployeeFeature".
  • The protocol version between a REST client and service. If the client does not specify this header in the request the server will pick a default version for the API.
  • Contains one of the following values: true or false. If true, the server performs an Upsert operation instead of a Create operation. During an Upsert operation, the server attempts to find an existing resource that matches the payload. If a match is found, the server updates the existing resource instead of creating a new one. If not found or false (default), the server performs a Create operation. Note that the Upsert operation isn't supported for date-effective REST resources.
Supported Media Types
Request Body - application/json ()
Root Schema : schema
Type: object
Show Source
  • Title: Description
    Maximum Length: 250
    A brief description of the import mapping.
  • Import Activity Map Columns
    Title: Import Activity Map Columns
    The import mapping columns resource is used to view, create, update, and delete an entry in a file import map which shows the mapping between a source CSV file column header and a file import object attribute.
  • Title: Mapping Number
    Maximum Length: 130
    The alternate key identifier of the import mapping.
  • Title: File Import Mapping
    Maximum Length: 100
    The name of the import mapping.
  • Title: Object
    Maximum Length: 100
    The code indicating the type of object imported using the optimized Import option. For example, Accounts, Contacts, or Opportunities.
Nested Schema : Import Activity Map Columns
Type: array
Title: Import Activity Map Columns
The import mapping columns resource is used to view, create, update, and delete an entry in a file import map which shows the mapping between a source CSV file column header and a file import object attribute.
Show Source
Nested Schema : schema
Type: object
Show Source
  • Title: Attribute Name
    The code indicating the type of the attribute mapped to the source file column header. A list of valid values is defined in the lookup FUSION.ZCA_OBJECT_ATTRIBUTES .
  • Title: Attribute Display Name
    The import object attribute display name mapped to the source file column header.
  • Title: Column Header
    Maximum Length: 500
    The column header name in the CSV source file.
  • Title: Example Value
    Maximum Length: 100
    An example value for the respective source file column.
  • Title: Ignore
    Maximum Length: 1
    Indicates whether the source file column header values should be ignored during import or not.
  • Title: Mapping Column Number
    Maximum Length: 160
    The alternate key identifier of the import mapping column.
Back to Top

Response

Supported Media Types

Default Response

The following table describes the default response for this task.
Headers
  • If the REST API supports runtime customizations, the shape of the service may change during runtime. The REST client may isolate itself from these changes or choose to interact with the latest version of the API by specifying this header. For example: Metadata-Context:sandbox="TrackEmployeeFeature".
  • The protocol version between a REST client and service. If the client does not specify this header in the request the server will pick a default version for the API.
Body ()
Root Schema : importMappings-item-response
Type: object
Show Source
  • Title: Created By
    Read Only: true
    Maximum Length: 64
    The user who created the record.
  • Title: Creation Date
    Read Only: true
    The date and time when the record was created.
  • Title: Description
    Maximum Length: 250
    A brief description of the import mapping.
  • Import Activity Map Columns
    Title: Import Activity Map Columns
    The import mapping columns resource is used to view, create, update, and delete an entry in a file import map which shows the mapping between a source CSV file column header and a file import object attribute.
  • Title: Last Update Date
    Read Only: true
    The date and time when the record was last updated.
  • Title: Last Updated By
    Read Only: true
    Maximum Length: 64
    The user who last updated the record.
  • Title: Last Updated
    Read Only: true
    Maximum Length: 32
    The login of the user who last updated the record.
  • Links
  • Title: Mapping Number
    Maximum Length: 130
    The alternate key identifier of the import mapping.
  • Title: File Import Mapping
    Maximum Length: 100
    The name of the import mapping.
  • Title: Object
    Maximum Length: 100
    The code indicating the type of object imported using the optimized Import option. For example, Accounts, Contacts, or Opportunities.
Nested Schema : Import Activity Map Columns
Type: array
Title: Import Activity Map Columns
The import mapping columns resource is used to view, create, update, and delete an entry in a file import map which shows the mapping between a source CSV file column header and a file import object attribute.
Show Source
Nested Schema : importMappings-ImportMappingColumns-item-response
Type: object
Show Source
  • Title: Attribute Name
    The code indicating the type of the attribute mapped to the source file column header. A list of valid values is defined in the lookup FUSION.ZCA_OBJECT_ATTRIBUTES .
  • Title: Attribute Display Name
    The import object attribute display name mapped to the source file column header.
  • Title: Column Header
    Maximum Length: 500
    The column header name in the CSV source file.
  • Title: Created By
    Read Only: true
    Maximum Length: 64
    The user who created the record.
  • Title: Creation Date
    Read Only: true
    The date and time when the record was created.
  • Title: Example Value
    Maximum Length: 100
    An example value for the respective source file column.
  • Title: Ignore
    Maximum Length: 1
    Indicates whether the source file column header values should be ignored during import or not.
  • Title: Last Update Date
    Read Only: true
    The date and time when the record was last updated.
  • Title: Last Updated By
    Read Only: true
    Maximum Length: 64
    The user who last updated the record.
  • Title: Last Updated
    Read Only: true
    Maximum Length: 32
    The login of the user who last updated the record.
  • Links
  • Title: Mapping Column Number
    Maximum Length: 160
    The alternate key identifier of the import mapping column.
Back to Top

Examples

The following example shows how to create a file import map by submitting a POST request on the REST resource using cURL.

cURL Command

curl -u <username:password> \ -X POST -d @example_request_payload.json https://servername.fa.us2.oraclecloud.com/crmRestApi/resources/11.13.18.05/importMappings

Example of Request Body

The following shows an example of the request body in JSON format.

{
  "Name" : "Acc_MAT_delay_WarningLink",
  "Description" : null,
  "ObjectCode" : "Account" 
}

Example of Response Body

The following shows an example of the response body in JSON format.

{
  "MappingNumber" : "300100123776040",
  "Name" : "Acc_MAT_delay_WarningLink",
  "ObjectCode" : "Account",
  "Description" : null,
  "CreationDate" : "2017-11-02T13:22:04.178+00:00",
  "CreatedBy" : "MHoope",
  "LastUpdateDate" : "2017-11-02T14:35:50+00:00",
  "LastUpdatedBy" : "SALES_ADMIN",
  "LastUpdateLogin" : "5D01E1EBD5DB6C3EE053768DF50A9500"
  }
Back to Top