- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2016 12:13 PM
When an incident is created, default assignment group should be set as "IT Systems". I was told that the best practice is to create a client script instead of setting the default value in form design.
Can anyone share script (screenshot) and suggestions?
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2016 12:23 PM
Client scripts are subject to the whim of the client browser. I think it is best practice to move as much of the processing as you can to the server. I would not go Client Script here.
I would do the before insert that was suggested above.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2016 12:20 PM
may be better to do it in a before insert business rule. that way in case you decide to make that a property (instead of hard coding a group's sys_id), you can do the look up server side before the record is saved. Also, if you use a client script, it won't apply if an incident is created through an integration.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2016 12:21 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2016 12:23 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2016 01:14 PM
Your condition should be
current.isNewRecord()
and make sure you have the INSERT checkbox on the "When to run" section checked.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2016 01:25 PM
Works now. Thanks a lot all.