You need to sign in to do that
Don't have an account?
ChickenOrBeef
Task WhoID is NULL when created from BCC'd email
Hey everyone,
I have a task trigger that depends entirely upon the value in the WhoID field upon creation. I noticed that if a task is created via a BCC'd email, the trigger doesn't work. After putting in some debug statements, I saw that WhoID isn't populated upon creation when the task if from a BCC'd email.
Any idea what I should do?
Thanks,
Greg
I have a task trigger that depends entirely upon the value in the WhoID field upon creation. I noticed that if a task is created via a BCC'd email, the trigger doesn't work. After putting in some debug statements, I saw that WhoID isn't populated upon creation when the task if from a BCC'd email.
Any idea what I should do?
Thanks,
Greg
I actually just figured this out. I gathered all the Task IDs in the trigger and then pushed them to a future class.
Do you think my method is cleaner than yours, or should I go with the Before Insert trigger?
Thanks!
-Greg
All Answers
I actually just figured this out. I gathered all the Task IDs in the trigger and then pushed them to a future class.
Do you think my method is cleaner than yours, or should I go with the Before Insert trigger?
Thanks!
-Greg
I'm running into this issue currently where the whoId is null. Can you expand on your comment about writing a trigger to set the whoId for the task?