Add an attachment to a case using File Picker node in the VA

Matt Lodge
Tera Expert

I have a topic built in the the HR Virtual agent. I'm at the point in the flow where I'm creating an HR ticket. As part of creating the ticket, I'm trying to use the File Picker node to allow the colleague using the VA, to upload an attachment that will attach said file to the ticket that's generated.

In the Virtual Agent Designer I'm testing the flow and I can create the HR ticket. When I go to the portal or to view all HR cases in UI16 or Next Experience, the file I attached to the VA conversation is not brought through tot the case.

Has anyone else experienced this?

2 REPLIES 2

alkindis
Tera Contributor

I'm stuck in the same place to be honsest, but this may help you...

 

https://www.servicenow.com/community/virtual-agent-nlu-articles/virtual-agent-user-input-file-picker...

Ofuoma
Tera Contributor

Hi @Matt Lodge, I just did this in my pdi, after my topic block "Create HR Case" i have a script action with the code below

(function execute() {
    vaSystem.attachToRecord(
        vaInputs.attachment_file,
        vaVars.caseTable,
        vaInputs.case_id
    );
})()

 

 

Ofuoma_0-1745800460833.png

Hope this helps