on 02-24-2006 5:20 AM
Hy,
I have to detach an email attachement on my file System.
That's works but I'm not able to maintain the same filename.
Can anybody help me.
Thanks
Mat
Hi Mattia,
you can have a look on how to check/add/change
e-mail attachment in the adapter module:
/people/michal.krawczyk2/blog/2006/02/23/xi-dynamic-name-in-the-mail-attachment--pseudo-variable-substitution
if you want to give a dynamic filename have a look at this one:
/people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
Regards,
michal
-
<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions">XI FAQ - Frequently Asked Questions</a>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mattia,
If your file name is a part of your email atttachment ( the payload ), then you can dynamically create your file name.
To do this,in the filename of the receiver file adapter, give the filename a <b>%var%</b>.
Anything between % is treated as a varibale by XI. Now, under variable name substitution, you will have to give the value of var and this will act as the filename.
You can access the payload using <b>payload:</b> and the XPATH.
For info on how to do this, check the topic<b> VARIABLE SUBSTITUTION</b> in this link.
http://help.sap.com/saphelp_nw04/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/content.htm
hope this helps,
Regards,
Bhavesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I receive the email with a sender email adapter the is connected to a File adapter.
I detach my file into the receiveer file adapter with the module "PayloadSwapBean" (with this module I indicated wich payload have to be the data payload). The File adapter write the file corretly on the file system (-> but at the moment with another fix Filename I configured into the adapter).
Thank's a lot for your support
Mat
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.