I need to check the user location while creating an incident through Virtual agent
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2024 09:00 PM
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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2024 09:45 PM
- 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.
Sujatha V.M.