+ Start a Discussion
chidambarakumari rchidambarakumari r 

Assign owner field based on related account team

In VF page they have written an code to create automatic case and using assignment rule it will assign to queue. Now instead of assigning to queue it should assign to the account team member (ABC Role). 

On case object we have primary service agent field user look up we need to assign the ABC role user to that field and then the case should automatically assigned to ABC role user.

Please help how it can be done and kindly share if any sample code. I'm new to salesforce I tried in my org but it fails