Hi,
I'd like to link the Team (case_channelid) field with the value of the field Assigned To (case_assigneduserid) in my Case Status screen (CaseStatusBox).
For instance if I select User A I want to automatically modify the value of the Team field to its PrimaryTeam "dynamically" (not after the click on save button, ie not with a Validate script if possible)
I've tried to add this on the Assigned To field in the OnChangeScript box but it doesn't work :
var userID = case_assigneduserid;
var user=CRM.FindRecord('users','user_userid=+userID);
if (!user.eof)
{
case_channelid=user.user_primarychannelid;
}
Please help or give advice on how to implement this !
Thank you
Valerian