CPM code to Assign the task to Advisor Group
I need to assign the task to Advisor Group using CPM (PHP) code.
Following piece of code throws errors,stating that "Invalid ID: No Such account with ID 100127"
$newTask->AssignedToAccount=RNCPHP\Account::fetch(100127); (100127 is Advisor Group id);
Is it possible to assign a task to Group?