You need to sign in to do that
Don't have an account?
Shylu
Update WhoID on Task using Trigger
Hi all,
I need to update whoid on task and here is my simplified trigger which is not working.
trigger UpdateWhoID on Task (before insert, before update)
{
for(Task t:Trigger.new)
{
t.whoid='003c000000csRby';
}
}
Note: Shared Activities is enabled in the organization.
I need to update whoid on task and here is my simplified trigger which is not working.
trigger UpdateWhoID on Task (before insert, before update)
{
for(Task t:Trigger.new)
{
t.whoid='003c000000csRby';
}
}
Note: Shared Activities is enabled in the organization.
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_triggers_fields_not_updated.htm