How to remove particular string value and set assignment group name
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2023 08:21 AM
Hi team,
We have one assignment rule and script include.
In assignment rule we are getting some name from api which need to be validate and then we have to set alignments group on incident record.
Assignment rule
var assignGrp = new SetAssignmentGroup().populateAssignmentGroup(assignmentGroup);
if (assignGrp.indexOf("add ml group") {
gs.log("ak**bleep**a");
assignGrp.replace("add ml group",""); // Remove "add ml group" from the set
current.assignment_group.setDisplayValue(assignGrp);
}
script include

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2023 08:46 AM
Hi,
Why you are adding additional string with Assignment group name?
What is the logic behind this? why you are not returning assignment group name as it is?
Thanks
Anil Lande