You use the PayloadSwapBean module to replace the application payload of the XI message that contains the business data with another payload that is appended to the XI message as an additional attachment.
The module can be applied in adapters that forward attachments.
You can use the module in the mail adapter for mails with attachments, for example.
More information: Mail Adapter
You have configured a communication channel of type Mail and are on the Module tab page in change mode.
Add the Module in the Processing Sequence
For information about where to insert the module, see: Extending the Module Chain for SAP Adapters in the Module Processor
The default module key is displayed.
Add Parameters in the Module Configuration
Under Parameter Name, enter swap.keyName.
The MIME headers of the payloads are searched in order and the system takes the first payload that meets the criteria. This payload is swapped with the application payload.