Use Case:
A client has a requirement to automate the processing of email attachments received in their Microsoft 365 Outlook inbox. Currently, they manually download the attachments from emails and upload them to Oracle Cloud Infrastructure (OCI) Object Storage for archival and further processing. This process is time-consuming and prone to errors.
The client needs a solution where the attachments are automatically extracted from specific emails (based on criteria like sender, subject, or date) and uploaded to a designated OCI Object Storage bucket. This ensures seamless and timely processing of files while reducing manual effort and improving efficiency.
Design steps:
We need to follow these steps to implement the solution:
-
Configure the Mailbox: Set up the mailbox and create a connection in OIC using the Microsoft Office 365 Outlook adapter.
- Set Up Object Storage Connection: Establish a connection to OCI Object Storage in OIC.
- Design a Scheduled Integration: Create a scheduled integration in OIC and implement the following steps:
- Fetch emails from the configured mailbox.
- Read the email messages.
- Extract the attachments from the emails.
- Upload the extracted attachments to OCI Object Storage.
Create a connection to the Object Storage
Either use the REST endpoint using the Object Storage Service API — https://docs.oracle.com/en-us/iaas/api/#/en/objectstorage/20160918/
you can follow my blog
https://soalicious.blogspot.com/2022/08/oic-how-to-use-oci-object-storage-from.html
or configure your Oracle Integration instance using the steps in this link — https://docs.oracle.com/en/cloud/paas/application-integration/integrations-user/add-actions-app-driven-orchestration-integration.html#GUID-822226B0-B8EB-42E0-B053-8D844D2F45DB to access Object Storage using OCI Object Storage Action.
- Create a microsoft office 365 outlook account with custom domain
- Register the application in Azure to create client Id and client secret.
No comments:
Post a Comment