Query related to Email adapter

Hi,
I have query related to receiver Email adapter. I am able to run a scenario for 2 attachments in receiver mail adapter scenario.
My scenario is that I am picking up the multiple files using sender file adapter "additonal fiiles" fucntionality and and post the two files as attachments in receiver email adapter. I am picking up two formats: .xml file and PDF and successfully attached to the receiver email adapter.
My query is is related to Standard module processors sequence.
For 3 files in mail attachments(.xml , pdf & .txt)  what should be the module processors sequence in receiver email adapter?
Currently I am using the following module processors sequence
1     localejbs/AF_Modules/MessageTransformBean                          Local Enterprise Bean     trans2
2     localejbs/AF_Modules/PayloadSwapBean                          Local Enterprise Bean     swap
3     localejbs/AF_Modules/MessageTransformBean                          Local Enterprise Bean     trans1
4     sap.com/com.sap.aii.adapter.mail.app/XIMailAdapterBean     Local Enterprise Bean     mail
swap -> swap.keyName -> payload-name
swap> swap.keyValue> file1
trans1> Transform.ContentDescription>file1
trans1> Transform.ContentDisposition>attachment
trans1> Transform.ContentType>application/pdf;name="file1.pdf"
trans2>Transform.ContentDescription>file1
trans2>Transform.ContentDescription>inline
Can any body tell me what should be the sequence of module processors and the associated parameters so that all formats(.xml , pdf & .txt)  should go as an attachments in the reciever email adapter.
Thanks & Regards
Prabhat

it would be something like this, Try this
1 localejbs/AF_Modules/PayloadSwapBean Local Enterprise Bean swaptxt
2 localejbs/AF_Modules/MessageTransformBean Local Enterprise Bean trans3
3 localejbs/AF_Modules/PayloadSwapBean Local Enterprise Bean swapxml
4 localejbs/AF_Modules/MessageTransformBean Local Enterprise Bean trans2
5 localejbs/AF_Modules/PayloadSwapBean Local Enterprise Bean swappdf
6 localejbs/AF_Modules/MessageTransformBean Local Enterprise Bean trans1
7 sap.com/com.sap.aii.adapter.mail.app/XIMailAdapterBean Local Enterprise Bean mail
swapxml -> swap.keyName -> payload-name
swapxml> swap.keyValue> file2
swappdf -> swap.keyName -> payload-name
swappdf> swap.keyValue> file1
trans1> Transform.ContentDescription>file1
trans1> Transform.ContentDisposition>attachment
trans1> Transform.ContentType>application/pdf;name="file1.pdf"
trans2>Transform.ContentDescription>file2
trans2>Transform.ContentDisposition>attachment
trans2> Transform.ContentType>application/xml;name="file2.xml"
trans3> Transform.ContentDescription>file3
trans3> Transform.ContentDisposition>attachment
trans3> Transform.ContentType>application/txt;name="file3.txt"
mail --> mime.contenttype   --> multipart/mixed
I have not tried this myself. but it should work

Similar Messages

  • Query related to Sender Email Adapter

    Hi ,
    I have one requirement related to sender mail adapter.
    There are 2 Interfaces and both the interfaces are fetching emails using 2 sender mail adapters from the same email database and I am posting data at the receiver side on the webservice using SOAP. So my requirements/challenges are as mentioned below
    1) How to diffrentiate the emails for the two Interfaces i.e .  how emails from the same email server database will be fetched correctly for the two interfaces, currently the interfaces are fetching the data incorrectly from the same email server as both the sender email adapters are active. It means that suppose sender email adapter of Interface A is active it fecthes the email and it deletes it from email database and hence it is not available for the interface "B". How to avoid this situation.
    2) How to filter emails using sender email adapters i.e. how can we avoid the junk mails and select the correct email for the correct interface.
    Note: IMAP cannot be used in our environment due to certain restriction, therefore how can it be done using POP3 protocol?
    Any suggestion on the problem will be much appreciated.
    Thanks & Regards
    Prabhat

    Hi,
    Any solution on this will be much appreciated.
    My requirement is how to filter emails using sender email adapter
    Note: I cant's use IMAP4 due to certain restriction, I can use only POP3
    Hi Salvi,
    Your suggestion cannot be implemented as
    The source payload for the two interfaces are different and also 2 different BPMs are used for 2 different interfaces so even if I use same mail adapter and it will picked up by the adapter and processed by one interface and not available to other interface as sender agreements for the interfaces will be different though the communication channel is same.
    So If anyone can provide me the solution as how to filter emails from mail box using sender mail adapter , that will solve my problem.
    Thanks & Regards
    Prabhat

  • Query related to multiple attachments in mail adapter

    Hi,
    I have a query related to multiple attachments in receiver mail adapter.
    I have successfully configured mail related scenarios but now I have another requirement in which I have multiple source files in one directory and I want to send one mail for multiple files as mail attachment using receiver mail adapter. Can anybody help me how to achieve multiple attachments in reciever mail adapter.
    To clarify the requirement more let us take an example
    Ex: I have 5 input files in the source which I pick up using additional files option in the sender file adapter, now I want to send those 5 files into one mail with 5 attachments. Can anybody explain how 5 different payload will be sent as multiple attachments in one mail.
    For your information I used, options like "keep attachments" , some parameters in module processesors etcs...but not able to find out as how exactly it will be achieved.......I dont want to use BPM collect pattern for this.....
    Need your help on this issue. Please suggest the solution as how it can be achieved using receiver mail adapter.
    Thanks & Regards
    Prabhat

    Hi,
    I resolved the issue on my own. Thanks for your help and support.
    Thanks & Regards
    Prabhat

  • How to filter emails using sender email adapter

    Hi,
    Does any one know how to filter emails of mail server using Sender email adapter(POP3 protocol ) in PI .
    To make it more clear let us assume that there are 10 emails in the email server then 3 emails should be fetched for Interface A , 3 emails Should be fetched for Interface B and remaining 4 emails should be ignored and left in the email server as it is ,  the reason for this is that it is not related with the Interface A or Interface B. Any suggestion or solution will be much appreciated.
    Thanks & Regards
    Prabhat

    Hi,
    I guess you didnt get my requirement clearly. My requirement is how to filter emails from email server using sender Email adapter in POP3 protocl and pass it to relevant Interface.
    For ex: suppose email no.1 is related to Interface A then it should go to Interface A
                   or         email no. 2 is related to Interface B then it should go to Interface B
                   or         if  email no. 3 is junk mail then it should avoid deleting that email and leave that email as it is
    The problem/challenge here is that email adapter of Interface A or B reads it first and deletes the email message so it is not available for the Interface A or B.
    So I just want that sender email adapter should filter it before deleting email from the email server.
    Can you provide some solution for this?
    Thanks & Regards
    Prabhat

  • Query related to GAL

    Hello All,
    We are in process of implementing Exchange 2013 in our Organization and had a Query related to GAL.
    Below is our Environment description:
    01. We have a Single Forest and Single Domain Architecture.
    02. We will have separate Active Directory Sites for all 3 Regions across Global.
    03. Exchange 2013 will be installed in each region.
    04. In APAC region Exchange 2013 Language pack for Japanese will be installed to support Japanese language.
    Our Requirement:
    ================
    01. When a Japanese User tries to browse GAL all the display names have to be displayed in Japanese language and when a user who resides other Region (Europe or AMERICAS) tries to browse GAL the Address list has to be displayed in default English Language.
    Can someone guide us on how this can be achieved?
    Awaiting for all your suggestions.
    Thanks in advance.
    Thanks & Regards,
    Nagaraj N
    Nagaraj N

    Hi Nagaraj,
    Here are some requirements that I am still not quite sure. Could you please provide more information about it? Such as:
    1. Do you mean one user have two display names: one with Japanese language used for users in Japan, one with English language used for English users? Then we filter address lists with language difference. Based on my knowledge, one email address is generally
    involved for one display name.
    2. If there are both Japanese users and English Language users in the forest, and you just need Japanese users view users whose name is displayed as Japanese language. We can use
    Address book policies (ABPs) to segment users into specific groups to provide customized views of your organization’s global address list (GAL).
    To show different GAL for different users, we can specify the CustomAttribute1-15 property to divide your organizations. For example, we can set the CustomAttribute15 property for Japanese users to
    Japan. Just like:
    Set-Mailbox –Identity JapanUser1 –CustomAttribute15 Japan
    Then we can create global address list for Japanese that includes all of the recipients that exists in the address lists and room address list:
    New-GlobalAddressList -Name "GAL_Japan" -RecipientFilter {(CustomAttribute15 -eq "Japan")}
    For detailed steps about how to create and apply the Address Book Policies, please refer to:
    http://technet.microsoft.com/en-us/library/jj657455(v=exchg.150).aspx
    Hope it helps.
    Regards,
    Winnie Liang
    TechNet Community Support

  • Custom query conditions in db adapter

    Hello,
    How to execute custom query in bpel db adapter?
    For example :
    1. select * from employee where status = 'N' and address is not null
    2. select * from empoyee where substatus = 'Y' and phone is null
    after where keyword - query part is dynamic, parameter combinations and count is unlimited ( depends on business logic ). It is not possible to implement each condition parameter as parameter in db adapter configuration.
    Db adatper query has to be something like  : select * from employee where #condition# , but #condtion# need to be interpretated as condition not string with quotes..
    best Regards,
    Uldis

    Say your complete query looks like this -
    select SUBJECT_NAME from RELATION
                where PID_GID_SSID IN (select PARTY_KEY from  xref WHERE row_id='123')
    1). In assign activity, write out the query part which comes after where clause and assign to variable query
    (select PARTY_KEY from  xref WHERE row_id='123') , replace the value of row_id from input value in assign.
    2. Now open DB adapter and pass the rest of query as input -
    select SUBJECT_NAME from RELATION
                where PID_GID_SSID IN #query

  • Alerting with Content Master Conversion Agent via Email Adapter

    Hi all,
    my question is: is it somehow possible to have the alerting also with EMail Scenario and Content Master? i am on SP 14 and in my alert rule there is no restriction. But when i make a restriction on adapter, the mail adapter is not available.
    So, Alerting with Email Adapter is not possible??
    Thanx a lot, folx,
    Felix

    Hi Felix,
    I have been trying to configure alerts using NO RESTRICTION. When i try to trigger my alerts using the report RSALERTEST, message is sent to my alert inbox.
    But, when any error occurs on my Integration Engine or Adapter Engine, the alert is not triggered.I am on SP14.
    Is there any additional configuration that needs to be done for the same?? Are you able to get ALERTS in your inbox whenever anything fails in your Integration Engine or Adapter Engine.
    It would be very helpful if you could answer this query.
    regards,
    bhavesh

  • Query relating to the creation of Managed Service Accounts

    Hi Folks
    I am studying for my 70-411 exam and have a query relating to the creation of Managed Service Accounts.
    I have successfully created an MSA account named 'MSATest' on a DC  using:
     new-adserviceaccount -name msatest –dnshostname home-dc-01 -passthru
    and
     add-AdcomputerServiceAccount -identity home-ap-01 -serviceaccount msatest -passthru
    However the guide that I am using now says that I now need to run:  Install-ADServiceAccount on the host computer in the domain to install the MSA in order to make available it available for use by services.
    So on my member server (home-ap-01) I have installed the Active Directory Module for powershell and ran:
    PS C:\Users\administrator.PCECORP> Install-ADServiceAccount -Identity msatest
    Install-ADServiceAccount : Cannot install service account. Error Message: 'An
    unspecified error has occurred'.
    At line:1 char:1
    + Install-ADServiceAccount -Identity msatest
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : WriteError: (msatest:String) [Install-ADServiceA
       ccount], ADException
        + FullyQualifiedErrorId : InstallADServiceAccount:PerformOperation:Install
       ServiceAcccountFailure,Microsoft.ActiveDirectory.Management.Commands.Insta
      llADServiceAccount
    PS C:\Users\administrator.PCECORP>
    However this errors, Have I misunderstood the purpose of the Install-ADServiceAccount ?  or am I doing something wrong?
    Thanks in advance for you help.

    Try using  -RestrictToSingleComputer parameter when creating service account with New-ADServiceAccount.
    Gleb.
    Hi Gleb
    Thank you for your help, it is appreciated.  That did the trick.
    All the best.

  • How to send only one (of several) attachment from a receiver email adapter?

    Hi all,
    I have been working with the SAP XI email adapter for some time and now I encountered the following challenge:
    I am receiving a message via email from a partner, call some modules which lead to the generation of 5 attachments in total for the incoming message.
    I then map the MainDocument to a CONTRL message and return it to the sender using the dynamic parameters of both the sender and the receiver email cc.
    I am filling these parameters inside the message mapping; so far I am not using the mailpackage xsd (the only things out of the ordinary are checked boxes for "use adapter specific parameters", "variable transport" and "keep attachments").
    My problem is that the email receiver cc now generates an email with 5 attachments when I need it to add only the CONTRL (aka MainDocument) as attachment to this email.
    Do you know if there is a way to tell the receiver cc to only use one attachment (or to remove attachments from the original message, f.ex. inside the message mapping)?
    Thanks and cheers!
    Stefan

    Hi Stefan,
    >>>>Do you know if there is a way to tell the receiver cc to only use one attachment (or to remove attachments from the original message, f.ex. inside the message mapping)?
    1. It cannot be done in a mapping
    2. have a look at mz blog
    how simple it is to write an adapter that will do what you need
    (just check the delete part of this blog):
    /people/michal.krawczyk2/blog/2006/02/23/xi-dynamic-name-in-the-mail-attachment--pseudo-variable-substitution
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

  • Need help for Adapter Specific Message Attributes in Receiver Email Adapter

    We want to use Adapter Specifice Message Attributes(ASMA) in Receiver Email Adapter for sending the mails dynamically, and to set the CC and BCC. I have gone through the help give in <a href="http://help.sap.com/saphelp_nw04/helpdata/en/a5/1b5342d8a7be30e10000000a155106/frameset.htm">SAP Help</a>
    not clear how to use it. Please help to configure this.Any blogs?
    with regards,
    Ravi Siddam

    Hi Kumar,
    This blog explains about using 'Mail Package' option. We have already gone through this link and configured as explianed.  1.it dosen't support CC,BCC and 2. it is old way.
    We are on PI 7.0. It is recommended to use ASMA and in this it is possible to use CC and BCC.
    We don't know how to use ASMA. any help?
    with regards,
    Ravi Siddam

  • Using Attachments in the Email Adapter

    Hi,
    I'm using an email adapter(Sender - XIPayload) to send message to XI. It was working fine when my mail content was the XML messsage. But now i have to use the content of an attachment file to do the mapping. The attachment is an XML file. I have checked the Keep attachments option and now i can see that the payload contains two sections. One is the mail content and the attachment content. But the mapping fails. How can i specify that the content of the attachment is to be used for mapping? Can somebody give some inputs on how to achieve this?
    Thanks,
    Sandeep

    Hi Sandeep,
    To use attachments in mail adapter, just do the following things:
    -     Set the Keep Attachments indicator.
    -     And you use the PayloadSwapBean module to swap the application payload with one of the attachments.
    Please also go thru the following links:
    http://help.sap.com/saphelp_nw04/helpdata/en/6b/4493404f673028e10000000a1550b0/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/2e/bf37423cf7ab04e10000000a1550b0/content.htm
    Regards,
    abhy

  • Sender Email Adapter in PI 7.11 by using the IMAP

    Hi Experts
    I am trying to configure a sender email adapter by using the IMAP Protocal , Can anyone send the blog or paramertes to configure for IMAP Protocal
    I did find for POP3
    Thanks
    PR

    Can anyone send the blog or paramertes to configure for IMAP Protocal
    http://saptrainingsonline.com/sap-xi-pi-tutorials/configuring-the-receiver-mail-adapter-in-sap-xi-pi/
    http://help.sap.com/saphelp_nw04/helpdata/en/6b/4493404f673028e10000000a1550b0/frameset.htm

  • Email Adapter Throwing Error

    Hi,
    I'm using a sender email adapter. But its throwing the following error.
    error occured: exception caught during processing mail message; java.io.IOException: invalid IMAP status response; not finding * STATUS, but 001I NO The requested item could not be found.
    Can somebody let me know why does this happen? I'm using IMAP4, XIPAYLOAD and Plain Authentication mode.
    Thanks,
    Sandeep

    Hi all
    Just  for your interest : I had same issue and it was due to a incorrect URL in the mail adapter ( I used my mailbox name and didn't specify the IMAP folder INBOX ):
    e.g. imap://mailserver/INBOX
    worked for me ( the individual mailbox is apparently found via the username/password ) with microsoft exchange as mail server
    hope it can still helps anyone,
    regards
    Dirk

  • Filename attachment to dynamic email address in receiver email adapter

    Hi,
    Can i send a file with dynamic name to a dyanmically generated Email Id as attachment using receiver Email adapter ?
    Thanks
    Rupesh Kumar

    Hi,
    I had gone through the links given , but it doesn't answer my question completely. I think i need a java code to send dynamically generated filename to be send to dynamically generated email ID.
    The file name and the email Id is available in the sender adapter.
    This filename should be send as attachment to the Email Id using receiver Email adapter.
    Thanks & regards,
    Rupesh

  • Query related to DataGuard Archicture...

    Hi All,
    I want to implement DataGuard Archicture in my setup, I'hv one query related to different operating system in my setup, I'hv two server one for primary and the other for standby Database with 10g DB R2. In one server having Linux os and the other own has Solaris, so DataGuard will work on different os or both server os should be same? And if I'hv 2 GB then will it be create any prob?
    pl. suggest me.

    A requirement for standby is both databases must be on the same platform and on the same db version, this requirement applies even if you are on a logical or on a physical dataguard database.
    You can verify the Step by Step instructions to create a standby database:
    Step-byStep Instructions for Creating a Logical Standby Database
    Step-by-Step Instructions for Creating a Physical Standby Database
    ~ Madrid

Maybe you are looking for

  • ICal: january has dissapear!!!!!!

    The month of janury has dissapear from iCal in both my wife's macbook and my macbook pro (which are not sincronize). The main window and the preview window would jump from dec 2007 to february 2008. I can only get to jan 08 if i change my view to wee

  • Export-RTF is not working in CS3

    Dear Guys, I'm new to this field. With reference of InDesign CS3 scripting guides i exported TXT output from an InDesing Document. But i cannot export RTF Output. Can anyone help me on this? Thanks SaRaVaNaN.N

  • Performance improvement in Oracle 11g

    Hi, What are the best suggestion to handle when we implement performance tuning in oracle? Below are the scenario: Scenario # 1 : App team is running some test cases from front end. and there was a performace degradation while running the SQL stateme

  • Importing .tif files, resizing, adding motion, drop shadow - 30 times?

    Creating "pop up tips" in an instructional video. Is there a way to add the same behaviors to each new "Tip #" as I import them, instead of going through the same resizing, motion, drop shadow steps each time? Sorry if this question has been answered

  • JRUN instance giving error

    hi, we have recently setup a new JRUN instance for creating a dev environment for our website. But when rendering the site there is sme error that is coming for which I have searched a lot but we are still not able to figure out what is the problem: