- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2023 02:46 AM
Required help @Vasantharajan N @Tanaji Patil
Need to auto populate assignment group on incident form depend on the catalog item variable selection.
As when the user select an option from the drop down list on service portal page of a catalog item it should auto assign to a group based on the selected option.
On Service Portal:
Selection of Option from Dropdown list
Incident Form:
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2023 01:05 AM
Try adding logs and see what are the logs;
var issueArr1 = ['telephony_application_access','Calls_quality_dropout','CUIC_reporting_dashboards', 'call_recording', 'add_modify_ccess', 'other_issue'];
// use array for more that 2 values to reduce code length
gs.info('ABC my_telephony_issue_about = '+producer.variables.my_telephony_issue_about);
gs.info('ABC isPart of Issue arr = '+issueArr1.indexOf(producer.variables.my_telephony_issue_about) > -1);
if (issueArr1.indexOf(producer.variables.my_telephony_issue_about) > -1) {
gs.info('Inside Array 1 for group c3538fd81b493dd481df65f1f54bcb4f');
current.assignment_group = 'c3538fd81b493dd481df65f1f54bcb4f';
}
if (producer.variables.my_telephony_issue_about == 'call_capture') {
current.assignment_group = 'd7e483d01b893dd481df65f1f54bcb86';
};
if (producer.variables.my_telephony_issue_about == 'alvaria_workforce_management') {
current.assignment_group = '97677a80dba7a5148837aa4dd396194c';
}
Thanks
Anil Lande
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2023 02:52 AM
You can try the Assignment look / data look up to do this assignment.
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************
