cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic attachment filename as parameter for swap.keyValue

markbernabe
Active Participant
0 Kudos

Hi Experts,

I have to a proxy with attachment scenario and I'm using PayloadSwapBean.

i.e.

Name<timestamp>.csv (application/plain)

MainDocument (application/xml)

What parameter value should I use for swap.keyValue that will accept/read the dynamic name (Name<timestamp>.csv) of the csv attachment?

swap.keyName: payload-name

swap.keyValue: ?

Thanks in advance.


Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

Hi Mark,

Please refer the below link. Hope may be helpful in your scenario.

http://wiki.scn.sap.com/wiki/display/XI/Adapter+Module+PI+7.0+Get+Attachment+Name

Regards,

Pranaya

markbernabe
Active Participant
0 Kudos

Hi Pranay,

Thanks for this. But is there another way to achieve this without using custom module?

ambrish_mishra
Active Contributor
0 Kudos

If you want this to be dynamic, custom module is the only way I guess...

Ambrish

Answers (3)

Answers (3)

markbernabe
Active Participant
0 Kudos

Hi All,

As what Ambrish has mentioned, it doesn't seem to be possible without custom module. So we've just assigned a fixed value to the attachment and used that in the parameter. Thanks for all your inputs.

former_member183909
Active Participant
0 Kudos

Try this for parameters of PayloadSwapBean;

swap.keyName = Payload-Name

swap.keyValue = MailAttachment-1

ambrish_mishra
Active Contributor
0 Kudos

hi Mark,

please refer the link http://scn.sap.com/thread/3297890

Ambrish