Sending Attachment Information with Service Operations
The following example shows sample PeopleCode for sending attachment information:
Local Message &MSG;
Local Rowset &Flight_Profile;
Local String &Attachment_id;
QE_FLIGHTDATA.QE_ACNUMBER.Value = QE_FLIGHTDATA.QE_ACNUMBER + 1;
&FLIGHT_PROFILE = GetLevel0();
&MSG = CreateMessage (Operation.ASYNC_RR);
&Attachment_id = &MSG.IBInfo.AddAttachment (c:\\temp\\myfile.txt);
&attachReturn = &MSG.IBInfo.SetAttachmentProperty(&Attachment_id,
%Attachment_Encoding, "UTF-8");
&attachReturn = &MSG.IBInfo.SetAttachmentProperty(&Attachment_id,
%Attachment_Base, "Standard");
&attachReturn = &MSG.IBInfo.SetAttachmentProperty(&Attachment_id,
%Attachment_Disposition, "Pending");
&attachReturn = &MSG.IBInfo.SetAttachmentProperty(&Attachment_id,
%Attachment_Language, "English");
&attachReturn = &MSG.IBInfo.SetAttachmentProperty(&Attachment_id,
%Attachment_Description, "Parts data");
&MSG.CopyRowset (&FLIGHT_PROFILE);
%IntBroker.Publish(&MSG);