
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-16-2014 02:38 PM
I'm using an Assignment rule to populate the "Assignment group" field, and thought I could set the "Assigned to" field to be the current user while I'm at it. I thought this would be a simple statement, like:
current.assigned_to = gs.getUser();
but this doesn't seem to be working. I can get this working with a business rule (user as Dynamic Default of "Me"), but would prefer to use an Assignment rule instead. Any ideas?
Thanks!
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2014 06:56 AM
If you are going to use a Script, I don't think you can have anything populated in the User or Group fields. If you do, I think it ignores the script. Try blanking those two fields and use something like this for your script:
current.assigned_to = gs.getUserID();
current.assignment_group.name = 'Network';
Thanks!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-16-2014 02:46 PM
Depends on exactly how you're doing this, but I think you would have to use gs.getUserID() as it returns a sysid rather than an object.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-16-2014 03:22 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-16-2014 03:24 PM
I would try adding javascript:gs.getUserID(); to the User field.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-16-2014 03:44 PM
I tried adding the javascript:gs.getUserID(); to the User's field dictionary as the default value, but the behavior still doesn't change. I'm wondering if there's something different about the User field for Assignment rules?