cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic Mail Properties in Receiver Mail Adapter in CPI

Former Member
0 Kudos

Dear All,

I am working on a scenario where I need to call an iFlow as a REST API and pass some values in the runtime dynamically viz. Mail Subject, Mail Body and recipients. How can I achieve this. Below is my iFlow.

Thanks

Amitabh

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

Hello Amitabh,

Please follow the steps mentioned in the blog below.

https://blogs.sap.com/2017/01/16/sap-hcp-is-exception-sub-process-how-to-create-alert-body-for-error...

hope this helps.

thanks and regards,

Praveen T

Former Member
0 Kudos

Hello Praveen,

Thanks a lot for the response. But I assume this is more for exception handling in SCI/HCI where you are fetching the runtime environment variables to phrase the mail as an alert.

Let me rephrase my query again.

I am going to call my iFlow as a REST API and would like pass the values via HTTPS adapter. The values will be Mail recipients, Mail Subject(Static+partly dynamic) and Mail Body(Static+partly dynamic).

Once this iFLow is called as a Rest API, mail should be sent with the values I pass to adapter.

I am not sure how can I achieve this. Would request for suggestions on the same.

Regards

Amitabh

0 Kudos

i Amitabh,

If you notice the steps mentioned after step 4 in the mentioned blog you could notice that the dynamic values are set as property value or header and again in step 7 through 9 you could see the same values are fetched run-time and updating the body, subject and other mail parameters dynamically.

Further details are mentioned in below link

Configure a Channel with Mail Adapter

hope this helps.

thanks and regards,

Praveen T

Former Member
0 Kudos

Thanks Praveen. I could achieve the scenario with your suggestion.

Regards

Amitabh

Answers (0)