Output Queue Metadata
Provides an API for adding custom metadata to Eagle output queue data entries during document and report export.
Metadata is stored as key-value pairs in the QWEEG Queue Metadata table and can be used for file naming placeholders, tracking document origins, and adding custom attributes to exported files in the Eagle output queue.
Object Definition
| Object Type | Codeunit |
| Object ID | 70337503 |
| Object Name | QWEEG Output Queue Metadata |
| Table No. | QWEEG Queue Metadata |
Procedures
| Name | Description |
|---|---|
| AddMetadata(Text[100]; Variant) | Adds a metadata key-value pair to the current output queue data entry being created. |
Remarks
Common metadata fields include: OriginalFileName, AttachmentType, CreatedAt.
Example
For apps without Eagle dependency:
Use RecordRef to populate a temporary "QWEEG Queue Metadata" record and run the codeunit:
var
RecRef: RecordRef;
RecordVariant: Variant;
OutputQueueMetadataId: Integer;
begin
TempBlob.FromRecord(IncomingDocumentAttachment, IncomingDocumentAttachment.FieldNo(Content));
FileManagement.BLOBExport(TempBlob, FileName, false);
OutputQueueMetadataId := 70337503; // QWEEG Output Queue Metadata
RecRef.Open(70337444, true); // QWEEG Queue Metadata, temporary
RecRef.Field(3).Value := 'OriginalFileName'; // Code
RecRef.Field(10).Value := 0; // Type (Use 0 for Text, 1 for Date, 2 for DateTime)
RecRef.Field(11).Value := IncomingDocumentAttachment.GetFullName(); // Value
RecordVariant := RecRef;
Codeunit.Run(OutputQueueMetadataId, RecordVariant);
RecRef.Field(3).Value := 'CreatedAt'; // Code
RecRef.Field(10).Value := 2; // Type (Use 0 for Text, 1 for Date, 2 for DateTime)
RecRef.Field(11).Value := IncomingDocumentAttachment.SystemCreatedAt.ToText(true); // Value
RecordVariant := RecRef;
Codeunit.Run(OutputQueueMetadataId, RecordVariant);
end;
This documentation is generated from Eagle v27.6