Send attachment in OIC notification
In this post I have explained how to send Attachments along with notification’s body in OIC Notification action.
The total size limit on a notification email is 1 MB for Oracle Integration and 2 MB for Oracle Integration Generation 2.
Steps overview to send attachment in OIC notification action :
- Open the Notification action and click on Plus icon “+” to add attachments.
- Select the Attachments ( ‘Reference’ )to add.You can edit or delete the attachment once added. Click save and close.That’s it. Your configuration for sending attachment in email notification completed.
[You can take reference from below image:- Fig -1, Fig -2, Fig-3]
- An attachment from a REST Adapter connection
- A file reference from a stage file write operation ⃕this case scenario I have covered in below hands-on practice.
- A file reference from an FTP Adapter download operation
#Hand-On Practice :
Use Case : Lets develop one simple APP DRIVEN ORCHESTRATION integration which can take some JSON inputs and that inputs will get send as an attachment in email notification in XML format.
Top view of integration which we are going to develop :
Lets see the steps in detail :
Step 1 : Crate one APP DRIVEN ORCHESTRATION by giving Integration a meaningful name.
Select any REST Trigger connection and configure the adapter as shown below –
- Configure the Request Sample JSON Payload window by entering below JSON and then click Ok.Click Next
- Configure the Response Sample JSON Payload window by entering below JSON and then click Ok.Click Next
STEP 2 : Now add Stage File Action and configure the adapter as shown below
- Enter a meaningful name , click Next
- In this window select XML Schema (XSD) Document.Click Next
- Stage File Action configuration completed. Click Done.
- Open the mapper to map the value
- Enter the basic details — *FROM, *TO EMAIL ids, *Subject , *Body and then click “+” icon of attachments
You can configure the approval email address to use in the FROM field on the notifications page that is accessible from Settings → Notifications.
- Click Save and Close the integration . Integration is ready to TEST.
UNIT TESTING : –
- Activate the Integration
- You can see “Success” response in downward response window.
- Now check your email. You have received one email notification with payload as shown below :
- Email Notification along with attachment
Thank you 🙂
You may also like
20 comments
Leave a Reply to Anonymous Cancel reply
Archives
- November 2024
- October 2024
- May 2024
- June 2023
- December 2022
- October 2022
- September 2022
- June 2022
- May 2022
- April 2022
- March 2022
- February 2022
- January 2022
- December 2021
- November 2021
- August 2021
- July 2021
- May 2021
- March 2021
- January 2021
- November 2020
- October 2020
- September 2020
- May 2020
- March 2020
- February 2020
- January 2020
- December 2019
- August 2019
- July 2019
- June 2019
- May 2019
- March 2019
Calendar
| M | T | W | T | F | S | S |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | ||
| 6 | 7 | 8 | 9 | 10 | 11 | 12 |
| 13 | 14 | 15 | 16 | 17 | 18 | 19 |
| 20 | 21 | 22 | 23 | 24 | 25 | 26 |
| 27 | 28 | 29 | 30 | |||



























Thanks for the blog .It was working fine. Getting mail with attachment.
thank for the blog. it is very useful information to learn OIC
Thank You Sreenivas 🙂
Thanks for the blog, it is helping me in learning OIC
Welcome Harsha 🙂
Excellent blog, Keep posting bro, Thanks a lot. God Bless You Dear
Thanks 🙂
Good stuff, Kabir.
Do you know on how to add attachemnts conditionally? E.g. I've created seperate generic integration for Error handling and passing fileReference to it and map it for attachment purpose in notification. But If it is empty ( so I do not want to attach anything ) it wouldn't send an email.
Read File — >IF Data Available –> Trigger Email Notification
|
ELSE–>Do not Trigger Notification
is there any way to ad "CC" in the notification
i don't think CC option is available in email notification, we can configure FROM & TO only
How can I do multiple attachments in notification?
I meant, how to multiple files dynamically? Lets say SFTP has n number of files, I need to send all files as an attachments in notification.
Just click on '+' icon present in Attachment Box and add all the 'FileReference' which you want to send attachment in notification
just click '+' icon and add the other references ( STEP 3 )
It is possbile to set currentDate in attachment file name ?
yes u can. While assigning file name in the expression builder box, use CONCAT function
What if the file reference are generated dynamically
I have a requirement of sending an attachment of an ATP 's output table . Could you pls tell me the steps or a blog like this
Please connect me through email "thekabiryadav@outlook.com". Thanks !