Live webinar What's new in Sodium: Information Requests, plus Q&A. Thu 19 Nov, 12 noon Information Requests + Q&A, Thu 19 Nov Reserve your place

CsvExportRequestDto

Request to start a CSV export of clients.
Specify column mappings and optional filter criteria to control the export output.

Properties

Name Type Description
mappingCodestring

Code of an existing saved mapping to use for column headers.
Use GET /clients/import/csv/mappings to list available mappings.
Mutually exclusive with ColumnMappings - provide one or the other.
If neither is provided, all fields are exported with enum names as headers.

Code of an existing saved mapping to use for column headers.
Use GET /clients/import/csv/mappings to list available mappings.
Mutually exclusive with ColumnMappings - provide one or the other.
If neither is provided, all fields are exported with enum names as headers.

columnMappingsarray of CsvColumnMappingDto

Inline column mappings for the export.
Each mapping specifies which client field maps to which CSV header.
Mutually exclusive with MappingCode - provide one or the other.
If neither is provided, all fields are exported with enum names as headers.

Inline column mappings for the export.
Each mapping specifies which client field maps to which CSV header.
Mutually exclusive with MappingCode - provide one or the other.
If neither is provided, all fields are exported with enum names as headers.

includeHeadersboolean

Whether to include a header row in the CSV output.
Default: true

Whether to include a header row in the CSV output.
Default: true

savedFilterCodestring

Code of a saved view whose clients to export. The file holds every client the view matches,
with all of its filters applied. Mutually exclusive with Filter - provide one or the other.
Only a view the user owns or that is shared with them can be exported.

Code of a saved view whose clients to export. The file holds every client the view matches,
with all of its filters applied. Mutually exclusive with Filter - provide one or the other.
Only a view the user owns or that is shared with them can be exported.

filterCsvExportFilterDto
missingInformationCsvExportMissingInformationDto
recurringTaskSetupCsvExportRecurringTaskSetupDto

JSON Example

{
  "mappingCode": "string",
  "columnMappings": [
    {
      "csvHeader": "...",
      "targetField": "...",
      "customFieldCode": "..."
    }
  ],
  "includeHeaders": false,
  "savedFilterCode": "string",
  "filter": {
    "managerCodes": [
      "..."
    ],
    "partnerCodes": [
      "..."
    ],
    "associateCodes": [
      "..."
    ],
    "statuses": [
      "..."
    ],
    "types": [
      "..."
    ]
  }
}

Used By Operations