Here’s my algorithm that should make Importing Group Emails Automatically, work again:
- get the From email address, and From name, from the email message.
- Is there a Contact record that is associated with this From email address?
- Yes: set
parent_typetoContacts, andparent_idto the ID of the Contact that is associated with this email address. We’re done. - No: Continue to the next step.
- Yes: set
- Is there any Module record that is associated with this From email address?
- Yes: set
parent_typeto the type of that Module record, andparent_idto the ID of that Module record that is associated with this email address. - No: Create a new Lead, set the Person’s name to the From name from this email message, associate a new Email address, associate it to this new Lead, and set
parent_typetoLeadsandparent_idto the ID of this new Lead.
- Yes: set