batchFile parameter contains a line-by-line file with data in it. This file can be CSV or JSON.
fileHeaderMap defines the header line for that file which defines the columns in batchFile parameter. For instance,
Message-ID;To;Name;Surname
is a typical header for this field. Message-ID and To columns are special columns in fileHeaderMap. Message-ID assigns a unique id for each of your messages. To defines the recipient. In fact, To is the only required parameter in the header.
Important System-Wide Columns
*Please note that the column names are case-sensitive!
To: (Required) The recipient of the message.
For email batches, this column defines email address. For mobile text(SMS) messages, this column defines is mobile number to send the message to.
Message-ID: We strongly suggest you to include Message-ID header in your data. Since we may be creating millions of messages (each line in batchFile stream defines another message) you may need to assign a unique id for each message. Message-ID is used for this purpose. This is strongly recommended but an optional parameter.
Cc: This column is used to add addresses for Cc in the email templates
Bcc: This column is used to add addresses for Bcc in the email templates.
User-Defined Columns
You may add your own columns specially for 3 reasons:
- To render some variables on the templates line Name, Surname, etc
- To execute some logic on the template. For instance, you put Gender column and based on gender, you can change your template colors, parts etc.
- Columns starting with X-: This columns are outputted to reports. For instance, you can add X-Member-Id and this column will be outputted in every report you will get back from the system.