cancel
Showing results for 
Search instead for 
Did you mean: 

Matching email Subject with attachment content

Former Member
0 Kudos

Hello All,

Here is my requirement. I receive and email from a third party. The emai Subject field has the name of the file that is the attachment. I need to pick up the email with PI and put the attachment to disk as a file where the name of the file is the "Subject" field of the email.

I have been able to write the attachment to disk as a file using the PayloadSwapBean. But how do I collect the name of the file from the "Subject" field so I can use it as the name of the file when I write?

Thank you for your assistance.

Rich

Accepted Solutions (1)

Accepted Solutions (1)

prateek
Active Contributor
0 Kudos

Use Dynamic Configuration. The Technical name for this Subject field in mail adapter is SHeaderSUBJECT. You can use it and assign it to FileName parameter of File adapter.

Regards,

Prateek Raj Srivastava

Answers (0)