web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested Answer

CRM Analytics

(3) ShareShare
ReportReport
Posted on by 6
Hi,
 
I am new to CRM & Dynamics 365.
 
I am looking for a breakup of all my contacts from a source perspective.
The source related fields are not populated and the account table is empty.
 
How can I get this information? Which tables can get me this information?
I have the same question (0)
  • Suggested answer
    Muhammad Shahzad Shafique Profile Picture
    2,375 Most Valuable Professional on at
    1: Identify the Source Field
    1. Check Contact Table (contact) for a field like:
      • Source, Lead Source, Originating Lead, or Created From.
      • Common fields include:
        • originatingleadid – links to Lead if contact came via Lead.
        • createdonbehalfby – indicates who created the contact.
        • createdby – shows the user/system who created the contact.
        • ownerid – shows current owner (may reflect channel indirectly).
    2. If these fields are not populated, that means the data source isn't being tracked properly.

    2: Trace Contact Creation Sources
    If originatingleadid is used:
    • Query the Lead (lead) table and link it with Contact (contact) using:
    SELECT c.fullname, l.leadsourcecode, l.subject
    FROM contact c
    LEFT JOIN lead l ON c.originatingleadid = l.leadid
    
     

    If not using Leads, check for:

    • Custom fields like Source Channel, Imported From, etc.
    • Audit logs if available – to track imports vs. manual creation.
    3: If Data Is Missing
    • Implement a process to populate a “Contact Source” field at the time of import, form submission, or manual creation.
    • You can create a custom option set or text field named Contact Source, and populate it via:
      • Power Automate
      • Plugins
      • Marketing Forms (if using Dynamics 365 Marketing)

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
ManoVerse Profile Picture

ManoVerse 192 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 129

#3
CU11031447-0 Profile Picture

CU11031447-0 100

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans