Skip to Content
0

Dynamic Mail Properties in Receiver Mail Adapter in CPI

Mar 22 at 09:51 AM

37

avatar image

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

vsdeb.png (9.2 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Praveen Tirumareddy
Mar 22 at 10:09 AM
0

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-notification/

hope this helps.

thanks and regards,

Praveen T

Show 3 Share
10 |10000 characters needed characters left characters exceeded

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

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

plain.jpg (260.2 kB)
plain.jpg (260.2 kB)
0

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

Regards

Amitabh

0