when ever the assignment group changes we need to update the caller id filed using business how we can achieve this

Sandeep74
Tera Expert

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

1 ACCEPTED SOLUTION

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

View solution in original post

6 REPLIES 6

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

Uttkarsh S
Tera Contributor

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