Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

CC Field in CRM advanced search and SQL Table

(1) ShareShare
ReportReport
Posted on by 2

We have Dynamics365 v8.2.3 and I'd like to compare the emails received in a mailbox in O365 vs on CRM (server-side sync).

In the advanced find, can see the To Recipients which contains the addresses in the "To" field on the email card. But where is the CC column?

1565.find.png

On SQL, In the Activitypointerbase Table, I can see the ToRecipients column only as well. So, when searching emails, those that were cc'd do not appear.

*This post is locked for comments

  • Inkey Solutions Profile Picture
    Inkey Solutions 1,825 on at
    RE: CC Field in CRM advanced search and SQL Table

    Hello Kokulan,

    Thank you for the above solution.

    I have similar kind of requirement where I need to have Email Messages which does not contain one particular contact record and one queue record in the To and CC field.

    Below is the screenshot of advance find query. It is giving me correct result for To Recipient field but for the CC field if I put "contains" in the condition, it is giving me correct result but it is not working properly for the "Dose not contains" condition. And I need to put "Dose not contains" condition to get the expected result.

    pastedimage1598625422463v1.png

    If anyone can help me for this issue, it will solve my problem.

    Thanks in advance.

  • OshoICT Profile Picture
    OshoICT 2 on at
    RE: CC Field in CRM advanced search and SQL Table

    Perfect. Thanks a lot, Kokulan.

  • Verified answer
    Kokulan Profile Picture
    Kokulan 18,050 on at
    RE: CC Field in CRM advanced search and SQL Table

    Hi

    You do not need a text field, you can search as shown below

    ScreenClip-_5B00_484_5D00_.png

    Note : Only restriction in this approach is that you can only search one activity party type at a time. In the example above, we are searching all the emails that have CC set  contact with the given email address. 

    Lets say you want to search not just Contacts in CC, you want to search Accounts or Users or other email enabled entities you have to run as separate queries.

    ScreenClip-_5B00_484_5D00_.png

    ScreenClip-_5B00_485_5D00_.png

  • OshoICT Profile Picture
    OshoICT 2 on at
    RE: CC Field in CRM advanced search and SQL Table

    Hi Kokulan,
    Thanks for your response. If I understand correctly, I need a text field to search. So, with the Related Activity Parties, is there a way to search for a specific email address? All the options I tried weren't working.

  • Suggested answer
    Kokulan Profile Picture
    Kokulan 18,050 on at
    RE: CC Field in CRM advanced search and SQL Table

    Hi

    To, CC, BCC are party lists, you will have to search via Related Entities.  Only To has a text field with all the to email address called To Recipients and thats why you are able to search in your screenshot

    In Related area, select Activity Parties and then select the participation type to search in CC or BCC

    3036.ScreenClip-_5B00_425_5D00_.png

    3036.ScreenClip-_5B00_425_5D00_.png

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,458 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans