- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2022 11:08 PM
we need to update the caller id field when ever user change the assignment group filed using business rule how we can achieve this
any code plz provide
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2022 11:33 PM
Yes you can do that
In client script
g_form.setValue('caller_id', g_user.userID); //sets the current logged-in user
In server script
current.setValue('caller_id', gs.getUserID()); //sets the current logged-in user
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2022 11:33 PM
Yes you can do that
In client script
g_form.setValue('caller_id', g_user.userID); //sets the current logged-in user
In server script
current.setValue('caller_id', gs.getUserID()); //sets the current logged-in user
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2022 11:39 PM
Hi Sandeep,
Achieving this using BR will work if you explicitly save the form.
You can add an onChange Client script to achieve this along with a display BR.
Display Business rule:
g_scratchpad.currentUser = gs.getUserID();
OnChange client script:
Field Name - Assignment group
g_form.setValue("assigned_to", g_scratchpad.currentUser);
Please mark correct/helpful if it answers/solves your query.
Cheers,
Uttkarsh