Short version.
Is there a way to get an email attachment raw contents into a string variable in a flow from the genesys APIs?
Long version.
I wish to place an email attachment from an inbound email flow to salesforce Files repo.
I can't use the inbound Email.Message.attachments[].contentUri as this is a secure token link, and also too large a link for Salesforce API to accept.
I found API api/v2/conversations/emails/{conversationId}/messages
Which provides a shortened contentUri for the attachments however this still looks to be a security based link to the document.
Salesforce API allows linking contentUri to a case but that is a link, and subject to the Genesys access token. This can't be used as the Saleforce piece will run some automated processing on the created case.
Saleforce API does allow base64 encoding a string of the file content, effectively uploading the file to Salesforces own File store. This is what I need to do.
is there a way to extract the raw content of the file from a FLOW environment?
I can then base64 encode that in my data action to Salesforce and pass along the file type etc.
I am aware I could link to an AWS Lambda and do processing there but that will incur additional costs for lambda and opening file stream from Genesys files to extrapolate contents, and then same (with base64 circa 37% overhead in size) to salesforce.
Thanks