Shows a dialog to send and/or store the document.
ECM Document Definition for the record. The document definition for the record can be found with API Function FindDocDefByRRef.
MainRecorddVariant
MainRecord (Record) will be added to ECM Queue and used for processing (metadata and PDF creation).
MainRecord can be a record, record id or RecordRef.
Contains the selected version:
ErrorCode = 0 and TransactionNo <> 0, if successful
With function ShowMessage ErrorCodes can be shown and with function WriteLog these can be logged.