Uploading files to a field in a record

In this section:

Ensure that:

To upload a file from a CSV file

  1. Prepare Source File: In the CSV source file,
    • Provide details of the file to be imported  in the format, FILENAME(<field-name>)
    • In the rows provide the relative path to the location of the file to be uploaded. For example, <relativepath>/<file-name>

  2. Prepare Definitions file: During CSV import, the headers in the CSV file and fields in the record are mapped automatically. You can, however, define the mapping manually in the definitions (definitions.properties) file in the following format:

     record.<recorddefinition-id>.fields.<field-name> = FILENAME(<field-name>)

To upload a file from an XML file

  1. Prepare Source File: In the XML source file, provide details of the file to be imported as:  <field-name><file-location/file-name></field-name>

  2. Prepare Definitions file: In the file containing the definitions for the XML file, enter the definition for the field containing in the format:

     record.<recorddefinition-id>.fields.<field-name> = FILENAME(<element>/<element>)

To upload a file from a JSON file

  1. Prepare Source File: In the JSON source file, provide details of the file to be imported as:  "<field-name>": "</path/to/file/file-name>"
    For example:

  2. Prepare Definitions file: In the file containing the definitions for the XML file, enter the definition for the field containing in the format:

    record.<recorddefinition-id>.fields.<field-name> = FILENAME($.<jsonPath-expression>/<jsonPath-expression>)