How to attach image/file to Incident in Virtual Agent Chat on Utah Version

PriyanshuVerma1
Tera Expert

In Virtual Agent I have created a topic, in which I should update an Incident with Attachment provided by end user in Chat Bot. I am using File Picker to Attach the file. 

After the file picker I  used the script action as :

 

(function execute() {
vaSystem.attachToRecord(vaInputs.attachment, 'incident', vaInputs.select_incident);
})()
 
attachment - is file picker variable
select_incident - is variable for incident
 
But this is not working. I get error from virtual agent right after the image from error handling topic :

"I'm having technical issues and won't be able to continue this conversation.

There are no agents available at the moment. Please try again later.

Thank you for using our support chat. Have a great day."

 

Can someone tell me how to fix it

1 REPLY 1

Ramya V
Kilo Sage

 

Hi @PriyanshuVerma1,

You can modify your script as follows:

 

(function execute() {
vaSystem.attachToRecord(vaInputs.attachment.getValue(), 'incident', vaInputs.incident_sys_id);
})()
 

Please mark my answer as correct and helpful if this solution works for you.