Trigger Event from Virtual Agent

swaroop
Kilo Sage

Hello All,

I want to Trigger an Event from Virtual Agent using 'gs.eventqueue('Event Name','Glide Record')'. But I cant able to Trigger the Event using above method. Can anyone help me how to trigger Event from Virtual Agent.

 

Thanks & Regards,

S.Swaroop.

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

@swaroop 

the event is on which table?

are you having glide record object of that in the VA script

You can use Script Utility and then add that server side script in it

can you share your complete script and topic

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

7 REPLIES 7

Ankur Bawiskar
Tera Patron
Tera Patron

@swaroop 

the event is on which table?

are you having glide record object of that in the VA script

You can use Script Utility and then add that server side script in it

can you share your complete script and topic

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Hello Ankur,

Thanks for quick reply.

I used below script in Script Utility.

vaVars.sys_id = vaInputs.get_record_2.getValue();

gs.eventqueue('email_notification_update',vaVars.sys_id);

 

Thanks & Regards,

S.Swaroop.

@swaroop 

the 2nd parameter is glide record object and not sysId so hence it's not working

can you share complete script and also screenshot

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Hello Ankur,

Below is the complete script I am using in Script Utility.

gs.eventqueue('email_notification_update',vaVars.sys_id);

 

I cant take screen shot as that is there in client space.

Can you please suggest me how to get glide record object and use in the gs.evntqueue in Virtual Agent.

 

Thanks & Regards,

S.Swaroop.