Monday, July 29, 2024

OIC - Error occured in fetching the attachment for Email

Usecase: There is one integration where we are retrieving object from oci object storage and getting a streamReference and from another integration we are calling  this 1st integeation and receiving the stream reference and assigning back to attachment to Email notification and we are getting below error:

Error occured in fetching the  attachment for Email 


Solution :

In the called intnegration: use encodeReferenceToBase64() function to encode the stream reference to Base64 data

In the caller integration: use decodeBase64ToReference() function to decode it back to reference and use it to email attachment and it will work.




No comments:

Post a Comment

Featured Post

OIC - How to Retrieve Email Attachments Using Microsoft Graph API: Automating Payment File Processing

Retrieving Email Attachments Using Microsoft Graph API: Automating Payment File Storage in Object Storage Use Case: A finance team needs t...