Place file in Object Storage from BIP using OIC
In this article, I’ll explain how to use Oracle Integration cloud to place file from BI Publisher report to Object Storage.
What is Object Storage
- It is an internet-scale, high-performance storage platform that offers reliable and cost-efficient data durability.
- This is used to store an unlimited amount of unstructured data such as images, videos, analytics data, and so on.
- You can create private and public buckets to safely access the data from within the cloud or from the internet.
Following are the pre-requisites to connect to the Object Storage in Oracle Integration:
- A bucket in the Object storage
- The namespace of the bucket
- API signing key (public and private)
- Fingerprint
- Object storage Rest API
- OCI tenancy OCID
- User OCID
- OCI tenancy region
Refer to this video to know how to Accessing Object Storage from Oracle Integration Cloud.
I’ll develop a scheduled integration that will run a BIP report in fusion and place the file in Object storage bucket.
This use case requires five simple steps to complete:
- Create BI Publisher report
- Create SOAP connection
- Create Object storage connection
- Create an Integration
- Activate the Integration
- Lets say we have created a simple data model and a report for that data model in fusion instance.
- Now to invoke that report from OIC we will need to have a SOAP connection. For more details on how to create a SOAP connection refer this blog.
- In order to place the BIP report output in Object storage location we need to create the Object Storage connection. Using the above 8 details we can create an Object Storage connection.
- Lets start by creating the scheduled integration. Give some name to the integration like INVOKE_BIP_OBJ_STG. For the initial step on how create the integration and add the RunBIPReport activity refer this blog.
So now you have configured the REST connection and we have the file in base64 encoded format. Now we have to invoke the Object storage connection and pass this file reference after decoding it. Search for the FTP connection that you have created in step 3.
Enter SendFileToObjStg in What do you want to call your endpoint, Endpoint relative resource URI as /n/{namespaceName}/b/{bucketName}/o/{objectName}, Action as PUT and checkmark the box Configure the request payload for this endpoint then click on Next.
Select the request payload format as “Binary” and media type of application body as application/octet-stream. Click on Next and then Done.
Now edit the mapper for SendFileToObjStg and map the reportBytes BIPReport Response to Stream Reference request of SendFileToObjStg using decodeBase64ToReference function.
Now click on validate and close. On the top right (below start button) click on Tracking and add the startTime in the tracking field and click on save.
- Now the integration is ready to use. And it looks something like this.
Click on save and close. And activate the integration by clicking on the start button and enabling tracing and payload.
Voila, you have completed the integration run. That’s all about this post. Thank you!
If you like this article, please like, comment, and share. Request you to subscribe to my YouTube channel for more such videos and don’t forget to subscribe to our channel to get regular updates.
Further readings:
Place file in ATP from BIP using OIC
How to write files using OIC FTP adapter
Read files from Object Storage in Oracle Integration
[…] Place file in Object Storage from BIP using OIC […]
[…] upload the file into a bucket in OCI. For more details on how to create a REST connection refer this […]
[…] Place file in Object Storage from BIP using OIC […]
[…] tadalafil 20mg 1a pharma […]
[…] Place the file in Object Storage from BIP using OIC […]
[…] Place the file in Object Storage from BIP using OIC […]
[…] Place the file in Object Storage from BIP using OIC […]
[…] buy lasix furosemide […]
Great article.Much thanks again. Will read on…
Awesome blog. Cool.