You need to sign in to do that
Don't have an account?
Trail Header 4
Assign the Case to the user (which is dynamic) mentioned in one of the fields on Case
According to salesforce's standard functionality,while creating Case, Case gets assigned by Case Assignments Rules. If Case Assignment Rule fails, Case gets assigned to default Case Owner. I either do not want this. I want to assign the Case to the user mentioned in one of the fields on Case, which is dynamic. I have already tried with process builder and before insert trigger, but in both cases, Case gets assigned to default owner. Can someone suggest me any solution?
Try below code, It should work -
Hope this resolves your issue.
Happy coding!
The code assigns the user correctly but since Assignment Rules executes after the trigger, the user again gets changed with default case owner.
I do not want to assign the Case to specific user. It will be dynamic. Case Assignment Rules doesn't provide option to set users dynamically.
2. Set it to true in the trigger 3.Add a rule criteria in assignment rule like below-
Hit this as a best answer if it resolves your issue.