I'm creating an BO OutboudEmail via process.
The input BO is Dockets.
Dockets BO has a Document attribute (Docekt_PDF) that stores a imported PDF file.
Issue:
When creating a new OutgoingEmail with OutgoingEmail.Attachment1=Dockets.Dockets_PDF, the Attachment remains UNDEFINED when BO is created.
Log:

Also tried:
1) IMPORT OutboundEmail.Attachment1 FROM Dockets.Docket_PDF
2) INSERT Dockets.Docket_PDF TO OutboundEmail.Attachment1
I'm not sure what the correct way of attaching documents to an email .