cancel
Showing results for 
Search instead for 
Did you mean: 

Sender Mail Adapter - Need to pick all email only with subject "Send to Business Partner "

former_member201264
Active Contributor
0 Kudos

Hi Experts,

I have a mail to file scenario where I need to pick all emails with subject as "Send to Business Partner".

I have seen one mail attribute SHeaderSUBJECT.

Can I use this attribute to set a condition like SHeaderSUBJECT = "Send to Business Partner"  some where in configuration?

Regards.

Sree.

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member193386
Active Contributor
0 Kudos

Hi kancham, did you solved your problem??

former_member184720
Active Contributor
0 Kudos

>>>Can I use this attribute to set a condition like SHeaderSUBJECT = "Send to Business Partner"  some where in configuration?


You can use this during the receiver determination to filter the messages.

former_member201264
Active Contributor
0 Kudos

Hi Hareesh,

In that case,  it picks all the emails from the inbox and then it looks for condition. (Correct me if I am wrong).

First of all, I do not want to pick all emals. I want to pick only email with the given subject.

Regards,

Sree.


former_member184720
Active Contributor
0 Kudos

I don't think that's possible at adapter level.

Simple approach could be to have a "mail rule" to move the email with that subject into different folder and then configure your PI channel to read from it. Doesn't it work for you?

former_member201264
Active Contributor
0 Kudos

Hi Hareesh,

I am OK with that approach, but need to pick based on email subject.

I have seen one of my previous project where if i send an email with "PI Process" subject then it was picking processing in PI.

But i am not recollecting exactly what to do to get the same.

Any other ideas please.

Regards,

Sree.

former_member193386
Active Contributor
0 Kudos

The best way is:

- Use IMAP protocol and create a folder "PI", for example.

- In your mail account create a role to put all messages with your filter message

- In your adapter mail sender use the "/PI" in the end of your imap host server