Need help dot walking in assignment script for Assigned to.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-15-2018 08:24 AM
Hi all,
I am attempting to create an assignment rule that sets the "Assigned to" field to the "Opened for's" Business Partner which is a value populated in their HR Profile. The Opened for field is a reference to the user table. I'm a beginner with scripting so I am looking for some assistance on how to populate the current record's "Assigned to" field with the Opened for's Business Partner using an Assignment rule or a Matching rule. Any assistance is greatly appreciated.
Taylor

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-15-2018 10:39 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-15-2018 11:05 AM
Hi all,
This is what I have compiled with all of your answers (thank you so much for your help!!). I have populated the group with the potential business partners that could be selected for the assignment group that is applied to these cases. I am using a Matching Rule with a script for this... I am still unfortunately not having success.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-15-2018 11:13 AM
Hi Taylor,
Excuse me if I have driven you the wrong way about using 'sys_id' instead of 'user'. If opened_for is referenced to user table, you should not use 'sys_id' in line3.
Instead, you have to use 'user' or whatever is the field on HR table that is storing the user info.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-15-2018 11:19 AM
That's okay! Thank you Archana - I have made this edit and still no luck.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-15-2018 11:38 AM
Sorry that still isn't working.
A bit of debug:
1) Set your matching rule to a specific user to verify that the matching rule is executing.
or scripting debug:
2)
Add gs.addInfoMessage("I am here in code");
or
Add gs.addInfoMessage("This is my HR Partner" + profileGR.u_hr_partner);
That is probably as far as I can get you without digging in.