cancel
Showing results for 
Search instead for 
Did you mean: 

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

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (2)

Answers (2)

0 Kudos
  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.
Former Member
0 Kudos

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

0 Kudos

Hello, Could you show us how is your setup, please?