Skip to Content
avatar image
Former Member

SAP HCI- Multiple attachments in mail from different Content modifer body

Hello All,

I have a requirement to send a single mail with different attachments coming from different content modifier.

Requirement is , I need to prepare multiple CSV files and send in a mail.

But, I can see the option to choose body. I dont have option to save the payload of the different content modifiers and using as source for the attachments.

Like saving the payload as property in different content modifiers and using as source.

(${property.Upsert_Payload}.

Please help.

file.png (9.0 kB)
capture.png (5.8 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Aug 01, 2017 at 04:08 PM

    Hello All,

    I got the solution adding the header in content modifiers and choosed the header option and provided header name in mail adpater.

    Regards,

    Tibin

    Add comment
    10|10000 characters needed characters exceeded

  • Nov 14, 2018 at 10:39 AM
    1. For every parallel cast, store the payload as a property through a content modifier. Ex - p_content1, type expression, value ${in.body}
    2. Use Join and Gather if you have used parallel multicast.
    3. In gather use text/plan and concatenate as aggregation strategy in case of CSV files otherwise, it can be xml and combine.
    4. After Gather step, make a process call the email.
    5. In the local integration process for email use another content modifier to create headers and capture the payloads from previous content modifiers created in step 1. Add headers if there are multiple payloads in the same content modifier. Ex - name - h_content1,type - property, value - p_content1
    6. Use Send to trigger the email.
    Add comment
    10|10000 characters needed characters exceeded