$ 0 0 You can make use of payload swapbean. Refer to below blog - Creating File Name from Mail Attachment using Standard Beans