Skip to Content
0

read attachment from mail and put condition - SAP PI

Nov 09, 2016 at 11:00 AM

58

avatar image

Hi Folks,

I have a scenario in which I need to read email from Inbox.

Email has attachment in it and I need to put conditions for receiver determination based on attachment data.

for mail scenarion, I can see xsd as

http://sap.com/xi/XI/Mail/30"> .

I assume mail adapter automatically get the data out of mail and put in respective fields like (to, from, subject etc ..)

But how can put my attachment data in fields to specify some condtion to determine receiver.

Is there a way to add attachment data to content so that I can put some condition.

Note: I need both attachment and content, so I believe I can't take the advantage of payloadswapbean.

Regards,

SP.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Praveen Gandepalli Nov 09, 2016 at 11:13 AM
0

Hi Sp,

If you need both main payload and attachment payload to define the receiver then only java mapping is the option. Write a java mapping to determine the receiver and use it in receiver determination step.

Regards,

Praveen.

Share
10 |10000 characters needed characters left characters exceeded
Evgeniy Kolmakov Nov 09, 2016 at 12:00 PM
0

Hi Sp!

You can use enhanced receiver determination where you can use UDF in message mapping for reading data from your attachments.

Regards, Evgeniy.

Share
10 |10000 characters needed characters left characters exceeded