assignment group routed to service desk
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-23-2023 03:38 AM
/**
* Example:
* The following script requires personalizing the instance to add the Malware category and the Security assignment group.
* if (current.category == "Hardware")
* current.assignment_group.setDisplayValue("Hardware");
* else if (current.category == "Software")
* current.assignment_group.setDisplayValue("Software");
* else if (current.category == "Malware")
* current.assignment_group.setDisplayValue("Security");
*
* Another Example:
* Release Planning Example, which assigns the last person assigned to a release to the current release.
* current.release.product.service.assigned_to;
*/
var userCountry=current.variables.u_nf_requested_for.location.country.getDisplayValue();
var AssignmentGroup=current.variables.assignment_groupp.getDisplayValue();
if(AssignmentGroup !=' ') {
current.assignment_group.setDisplayValue(AssignmentGroup);
}
else if( if (userCountry=="Australia" || userCountry=="China" || userCountry=="Philippines" ){
current.assignment_group.setDisplayValue("AUA Service Desk");
}
else if (userCountry=="Brazil" || userCountry=="Suriname"){
current.assignment_group.setDisplayValue("SOA Service Desk");
}
else if (userCountry=="Canada" ){
current.assignment_group.setDisplayValue("NOA Service Desk - FR");
}
else if (userCountry=="Guinea" || userCountry=="India" || userCountry=="Saudi Arabia" || userCountry==" United States" ){
current.assignment_group.setDisplayValue("NOA Service Desk - EN");
}
else if (userCountry=="Hungary"){
current.assignment_group.setDisplayValue("EUR Service Desk - HU");
}
else if (userCountry=="Iceland" || userCountry=="Netherlands" || userCountry=="Romania" || userCountry=="Switzerland"){
current.assignment_group.setDisplayValue("EUR Service Desk - EN");
}
else if (userCountry=="Italy"){
current.assignment_group.setDisplayValue("EUR Service Desk - IT");
}
else if (userCountry=="Norway"){
current.assignment_group.setDisplayValue("EUR Service Desk - NO");
}
else if (userCountry=="Spain"){
current.assignment_group.setDisplayValue("EUR Service Desk - ES");
}
else
{
current.assignment_group.setDisplayValue("NOA Service Desk - EN");
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-23-2023 03:44 AM
Hi @deepika adimu,
Try this
/**
* Example:
* The following script requires personalizing the instance to add the Malware category and the Security assignment group.
* if (current.category == "Hardware")
* current.assignment_group.setDisplayValue("Hardware");
* else if (current.category == "Software")
* current.assignment_group.setDisplayValue("Software");
* else if (current.category == "Malware")
* current.assignment_group.setDisplayValue("Security");
*
* Another Example:
* Release Planning Example, which assigns the last person assigned to a release to the current release.
* current.release.product.service.assigned_to;
*/
var userCountry = current.variables.u_nf_requested_for.location.country.getDisplayValue();
var assignmentGroup = current.variables.assignment_groupp.getDisplayValue();
if(assignmentGroup != "") {
current.assignment_group.setDisplayValue(assignmentGroup);
}
else if (userCountry=="Australia" || userCountry=="China" || userCountry=="Philippines" ){
current.assignment_group.setDisplayValue("AUA Service Desk");
}
else if (userCountry=="Brazil" || userCountry=="Suriname"){
current.assignment_group.setDisplayValue("SOA Service Desk");
}
else if (userCountry=="Canada" ){
current.assignment_group.setDisplayValue("NOA Service Desk - FR");
}
else if (userCountry=="Guinea" || userCountry=="India" || userCountry=="Saudi Arabia" || userCountry==" United States" ){
current.assignment_group.setDisplayValue("NOA Service Desk - EN");
}
else if (userCountry=="Hungary"){
current.assignment_group.setDisplayValue("EUR Service Desk - HU");
}
else if (userCountry=="Iceland" || userCountry=="Netherlands" || userCountry=="Romania" || userCountry=="Switzerland"){
current.assignment_group.setDisplayValue("EUR Service Desk - EN");
}
else if (userCountry=="Italy"){
current.assignment_group.setDisplayValue("EUR Service Desk - IT");
}
else if (userCountry=="Norway"){
current.assignment_group.setDisplayValue("EUR Service Desk - NO");
}
else if (userCountry=="Spain"){
current.assignment_group.setDisplayValue("EUR Service Desk - ES");
}
else
{
current.assignment_group.setDisplayValue("NOA Service Desk - EN");
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-23-2023 03:45 AM
what's the question?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader