I am required to write a trigger on the tasks created as a result of email sync from Outlook.But the problem is that I am not being able to differentiate between other tasks and the tasks created as a result of Email sync from outlook to salesforce. Is there any field that can let me know that whether the task was created as a result of email sync or other way?
-
Is that the tasks moving to unresolved items list just after syncing?– Santanu BoralCommented Jul 19, 2016 at 5:37
-
I really don't have any idea @Santanu,but they're adding up at the Contacts' Open Activities related list– Shobhit SaxenaCommented Jul 19, 2016 at 6:49
-
Did you find any solution for this ?– brahmaCommented Oct 16, 2017 at 11:37
2 Answers
By default, there's no distinction. The best solution to differentiate the tasks created from the Outlook to Salesforce sync vs. other tasks is to have a custom field which gets populated during the sync process. This can be a boolean flag or you can store any other sync information which may come in handy at a later stage.
The sync works based on Subject
and Due Date
. To find more details on how to control the specific task/ field syncing behavior, read here.
-
Is it possible to expose custom field only in Inbox ? or Is there any way where we can auto populate the field ?– brahmaCommented Oct 16, 2017 at 11:57
Task subject will begin with "Email:" if it is created as a result of email sync from Outlook