cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
126
Views
0
Helpful
0
Replies

Webex Contact Center flow - upload audio to Salesforce

jondudding
Level 1
Level 1

We have a UCCX script for our support line that currently allows the caller to record a message, and then that message is uploaded into Salesforce where it is associated with the correct case number. We have duplicated this script logic into a WxCC Flow, but the audio isn't uploading into SF as expected. The SF REST API has certain required fields for the 'ContentVersion' sobject POST call so we added those requirements to the JSON body of the POST call. There are two variables that we found that we can work with:

{{ recordedaudio.audioFileData }}

{{ recordedaudio.audioFileData.name }}

When base64encoding the first variable and then uploaded that to SF, it is the description of the audio file itself that is uploaded. Doing the same to the second variable, we end up uploading only the name of the audio file. Is there a variable that references the actual audio stream? I haven't found any documentation that mentions this.

(Using the HTTP Request Activity 'CONTENT' and 'FILE NAME' option does not work either, the SF API returns a 400 error.)

There is a TAC case open, but it is moving slowly. I was hoping that there is another variable that can be used. Or another method altogether.

Tks

Jon

0 Replies 0