You need to sign in to do that
Don't have an account?
orikker
Trigger on Tasks
Here is a problem:
We need to be able to populate a date field on Opportunity every time a new task of specific record type is created and related to opportunity (and ONLY).
Solution: create a trigger on insert. Here is where I am stuck, how to check if a task that is being created, relates to opportunity and not other object?
Thank you.
Check the first 3 characters of parent id field. If it's 006, this is a task on opportunity
All Answers
Check the first 3 characters of parent id field. If it's 006, this is a task on opportunity
Awesome. Thanks :)