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

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.

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.