Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Unanswered

Incoming email synchronization, server side, some recepients in CC are ignored

Posted on by 20

Hi all, 

I've a question or trouble with syncing email into crm.  Incoming email is synced into CRM with no all recepients in CC.  Example:

email in outllook:

To: queue@email.sk; contact_First@something.sk

CC: contact_Second@something.sk; contact_Third@something.sk; user_a@email.sk

Synchronized email in CRM:

To: Queue1(email: queue@email.sk); Contact(email queue@email.sk)   

CC: SystemUserA(email: user_a@email.sk); ContactA1(email: user_a@email.sk); ContactA2(email: user_a@email.sk)

Problem:

 email address in TO contact_First@something.sk is MISSING, even it DOES  exists as contact  with this email in CRM and was created couple days before mail was synced

emails in CC contact_Second@something.sk; contact_Third@something.sk; are MISSING even they DO exists as contact s with emails in CRM and were created couple days before mail was synced

Any ideas? 

Thank you for help, answer

David Svoboda

  • davidsvon Profile Picture
    davidsvon 20 on at
    RE: Incoming email synchronization, server side, some recepients in CC are ignored

    Hi Hector,

    thank you for your reply. Actually, me problematic environment is OnPrem, version 8.1 and currently PROD. I didn't replicate issue on my DEV environment.

    Anyway, I have at least DB readonly view to customer database. So I've uses SQL select to check emailsearch table instead your recomended URL.

    declare @checkemail varchar(100) = '%Katarina.Petkacova%'; this is on of missing CC recipients, ContactA1(email: user_a@email.sk)

    select 'emailsearch', es.EmailSearchId, es.EmailAddress, es.EmailAddress, null, null
    from emailsearch es
    where (es.EmailAddress like @checkemail)
    union
    select 'Account', a.AccountId, a.Name, ISNULL(a.emailaddress1, 'null') + ' ' + ISNULL(a.emailaddress2, 'null') + ' ' + ISNULL(a.emailaddress3, 'null'), a.ModifiedOn, a.createdon
    from Account a
    where (a.emailaddress1 like @checkemail or a.emailaddress2 like @checkemail or a.emailaddress3 like @checkemail)
    union
    select 'Contact', c.ContactId, c.FullName, ISNULL(c.emailaddress1, 'null') + ' ' + ISNULL(c.emailaddress2, 'null') + ' ' + ISNULL(c.emailaddress3, 'null'), c.ModifiedOn, c.createdon
    from Contact c
    where (c.emailaddress1 like @checkemail or c.emailaddress2 like @checkemail or c.emailaddress3 like @checkemail)
    union
    select 'Lead', l.leadId, l.FullName, ISNULL(l.emailaddress1, 'null') + ' ' + ISNULL(l.emailaddress2, 'null') + ' ' + ISNULL(l.emailaddress3, 'null'), l.ModifiedOn, l.createdon
    from Lead l
    where (l.emailaddress1 like @checkemail or l.emailaddress2 like @checkemail or l.emailaddress3 like @checkemail)
    union
    select 'Queue', q.QueueId, q.Name, q.emailaddress, q.ModifiedOn, q.createdon
    from Queue q
    where (q.emailaddress like @checkemail ) -- 232C5DB6-50D9-E911-80F2-005056A78F71
    union
    select 'mailbox', m.mailboxId, m.Name, m.emailaddress, m.ModifiedOn, m.createdon
    from mailbox m
    where (m.emailaddress like @checkemail )
    union
    select 'Team', t.TeamId, t.Name, t.emailaddress, t.ModifiedOn, t.createdon
    from Team t
    where (t.emailaddress like @checkemail)
    union
    select 'BusinessUnit', bu.BusinessUnitId, bu.Name, bu.emailaddress , bu.ModifiedOn, bu.createdon
    from BusinessUnit bu
    where (bu.emailaddress like @checkemail)
    union
    select 'SystemUser', s.SystemUserId, s.FullName, ISNULL(s.internalemailaddress, 'null') + ' ' + ISNULL(s.personalemailaddress, 'null') + ' ' + ISNULL(s.sharepointemailaddress, 'null') + ' ' + ISNULL(s.yammeremailaddress, 'null'), s.ModifiedOn, s.createdon
    from SystemUser s
    where (s.internalemailaddress like @checkemail or s.personalemailaddress like @checkemail or s.sharepointemailaddress like @checkemail or s.yammeremailaddress like @checkemail)
    union
    select 'unresolvedaddress',ua.UnresolvedAddressId, ua.FullName, ua.EmailAddress, null, null
    from unresolvedaddress ua
    where (ua.EmailAddress like @checkemail)

    returns 2 rows, 1.. contact, 2.. emailsearch

    (No column name) EmailSearchId EmailAddress EmailAddress (No column name) (No column name)
    emailsearch 34BF5195-868A-E811-80E2-005056A7775C Katarina.Petkacova@immorent.com Katarina.Petkacova@immorent.com NULL NULL
    Contact 2EBF5195-868A-E811-80E2-005056A7775C Katarina.Petkacova@immorent.com Katarina.Petkacova@immorent.com null null 2018-07-18 12:32:10.000 2018-07-18 12:32:10.000

    So email address is present in EmallSearch and ONLY 1 record in ContactEntity.. Does CRM care about lower, upper case in email address? Or do you have any other idea?

    Thank you

    David Svoboda

  • Hector H Profile Picture
    Hector H 197 on at
    RE: Incoming email synchronization, server side, some recepients in CC are ignored

    Hello David,

    When an email is received, the email address is searched in the emailsearchbase table to resolve what type of record is linked.

    One test that you could do is the following

    1) Set in your system settings in email tab in the section Set Email form options

    Set To,cc,bcc fields as unresolved values if multiples matches are found  to YES

    Try to include email address that DOES not exist in CRM

    Try to receive email, you need to check if the only email address appears.

    2) If you are online you can inquiry the emailsearch entity using this api link, change the org url and change the user@domain.com by the email address

    https://org.crm4.dynamics.com//api/data/v9.1/emailsearches?$filter=contains(emailaddress,%27user@domain.com%27)

    My guess is the problem could be in emailsearchbase table.

    Let me know your results.

    Hector

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans