Inserts multiple customers extensions to the Master Data table.
The name
(a name of the category) and customerId
must be provided for each record in the header and data object within the request body.
The /loaddata operation is a very efficient and quick way to insert bulk data to the Master Data table. The main advantage is its greater speed when loading thousands of records (compared to e.g. /integrate).
Please note If no
joinFields
are provided in the request, then this operation will insert entire records. It means that in this case (withoutjoinFields
) with /loaddata it is not possible to update just some fields (for this use the /integrate endpoint instead). The source data must always contain the entire row’s content.
Specify customer extension field names in the header
object and field values in the data
object.
Information: Field names (columns) sent in your request might be different from our sample request schema. Custom fields (
attribute1
..attribute30
) can be retrieved using the/fetch/CXAM
endpoint.
{- "data": {
- "data": [
- [
- "0006028005",
- "Customer001"
], - [
- "0006047451",
- "Customer001"
], - [
- "0006056838",
- "Customer001"
], - [
- "0000412926",
- "Customer001"
], - [
- "0000014471",
- "Customer001"
], - [
- "0000412891",
- "Customer001"
]
], - "header": [
- "customerId",
- "name"
], - "options": {
- "detectJoinFields": false,
- "joinFields": [
- "customerId",
- "name"
], - "maxJoinFieldsLengths": [
- {
- "joinField": "customerId",
- "maxLength": 3
}, - {
- "joinField": "name",
- "maxLength": 4
}
]
}
}
}
{- "response": {
- "node": "<the server>",
- "data": [
- 3
], - "status": 0
}
}