Note: The following information is for a trained report administrator who is familiar with the CRM data model.
Note: The following information is for a trained report administrator who is familiar with the CRM data model.
If Single report in the template, or the Series flag in the letter, is not set, all recipients are exported to a CSV file. For this, the system searches in the loader at the second level for a RECIPIENT or RECIPIENTS DTO. For each recipient, a row is created in the CSV file. Then the data below the recipient DTO is copied on the data of the first row, so that afterward the row differs only with respect to recipient data.
The name of the main DTOs and that of the recipient DTO can be provided through the report call parameter TOP_DTO or REC_DTO.
With SER_TYP, MainDocumentType can be set, e.g., 0 for wdFormLetters (standard) or 3 for wdCatalog.
The catalog function repeats the visible text of the template (usually a table) for every record. Between the records, no section change or page break is inserted.
For the template, enter the following parameters, separated by a space character:
SER_TYP: = 3 activates the catalog function.
TOP_DTO:=<EXTERNAL NAME> The name of the relevant top class (is suppressed with field name generation).
REC_DTO:=<EXTERNAL NAME> The name of the class that provides the records.
Example: SER_TYP:=3 TOP_DTO:=CHARACTER REC_DTO:=RECIPIENT
{SET KEY WORD {KEY WORD MERGEFIELD }}{REF KEYWORD}{SET START_DATE {MERGEFIELD START_DATE \ "MMM d, yyyy"}}COMPANY text label.{IF " {=OR ({COMPARE {MERGESEQ}="1"}; {COMPARE {REF COMPANY}<>{MERGEFIELD CONTACTS_COMPANY_NAME}})} "="1" "{MERGEFIELD CONTACTS_COMPANY_NAME}" ""}{SET COMPANY {MERGEFIELD CONTACTS_COMPANY_NAME}}{SKIPIF <comparison>} skips the record conditionally.SET, IF, OR, COMPARE, MERGESEQ, MERGEFIELD, NEXT, etc., are resolved.