Skip to Content

Adapter Module - Get mail of recipient


I want to create an module adapter to retrieve data from the sender adapter and get the email recipient to send the message.

In the logs of SAP PI do not see this information to get through to java programming.

Is it possible?


Marcelo Macedo

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Jul 27, 2012 at 02:58 PM

    Hi Marcelo

    What a kind of sender adapter You would like to use to this solution? I ask you about it because hava a lot ways to pass values using system variables for example

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Marcelo Macedo


      As Carlos said.: you need to activate the dynamic parameters (Set Adapter -Specific Message Attribute) on Sender Adapter.

      The above code is ok. however if you want to use module you can try with the above code . ( >= PI 7.1)

      public ModuleData process(ModuleContext moduleContext,ModuleData inputModuleData) throws ModuleException {Message msg = (Message) inputModuleData.getPrincipalData();String sFromMail = (String)msg.getMessageProperty(new MessagePropertyKey("SHeaderFROM", ""))"))



Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.