I need to check the user location while creating an incident through Virtual agent

SNDP
Tera Contributor

I am following the below code to create an incident from the virtual agent, but I also want to check the user's location and set the assignment group accordingly? Is it possible to achieve?

 

(function execute() {

var problemGr = new GlideRecordSecure('incident');
problemGr.initialize();
problemGr.short_description = 'Something';
problemGr.caller_id = vaInputs.user;
 
vaVars.create_problem = problemGr.insert();
return vaVars.create_problem;

})();
1 REPLY 1

Sujatha V M
Kilo Patron
Kilo Patron

@SNDP 

- Are you referencing user's location using "Managed by Group" in Location table and populating the group details?

- Is there any custom table with location and assignment and you are using it to populate the assignment groups?

 

Please mark this as helpful and accept it as a solution if this resolves your query.

Thanks,

Sujatha V.M.

Please mark this as helpful and accept it as a solution if this resolves your query.
Sujatha V.M.