+ Start a Discussion
RadnipRadnip 

Assign a group to a task.

Salesforce introduced allowing you to assign multiple users to tasks via roles/groups etc. Is there a way to do this via Apex as I can't find anything in the spec about it...

 

Best Answer chosen by Admin (Salesforce Developers) 
Arijit_rArijit_r

Through Apex you cannot assign a group Id to the owner field of task. From application even if you assign a task to a group or role, it will create multiple tasks for each of the individual users belonging to the Group/ Role.

All Answers

Arijit_rArijit_r

Through Apex you cannot assign a group Id to the owner field of task. From application even if you assign a task to a group or role, it will create multiple tasks for each of the individual users belonging to the Group/ Role.

This was selected as the best answer
RadnipRadnip

Ok thanks...

Arun KharbArun Kharb
Hi arijit_r,
So can you tell me how to assign a task to a Role having group of users through APEX?
Coz I am having this requirement whenever an opportunity is LOST then a task would be assigned to particular role.