Pages

Showing posts with label Data 360. Show all posts
Showing posts with label Data 360. Show all posts

Tuesday, October 27, 2026

Data 360: Objects Query

Use SOQL to query the following:

DLO >> DataLakeObjectInstance
  • Id - prefix "1dl"
  • Name - this is "Field Label" e.g. "Account_Home", "Base Events_Main" 
  • ExternalName - this is "Field API Name", e.g. Account_Home__dll, base_events_Main__dll
  • DataLakeObjectStatus: ACTIVE
  • Category: Profile, Engagement, Other
  • DataLakeObjectRef - prefix "0GO"
  • Billable: Yes or blank
  • TotalNumberOfFields
  • TotalRecords

DataStream >> DataStream
  • Id  - prefix "1ds"
  • Name - e.g. "Account_Home"
  • LastRefreshedDate  - date/time
  • LastNumberOfRowsAddedCount - rows added in last refresh
  • TotalRowsProcessed
  • TotalNumberOfRowsAdded - all rows for the object
  • RefreshFrequency: BATCH, NONE, MINUTES_5, HOURLY
  • RefreshMode: UPSERT, INCREMENTAL
  • StreamType
  • DataStreamStatus: ACTIVE
  • ImportRunStatus: SUCCESS

Tuesday, October 20, 2026

MCAE: Custom Redirect data in Data 360

Use case: to track users who access a PDF file on a website that is linked to MCAE.

MCAE has the WebPageActivity data stream ingested into Data 360; however, for the above scenario, accessing a PDF file will not generate web page activity.

Solution: Instead of promoting (such as in an email CTA) the PDF file directly, create a custom redirect in MCAE to track that PDF file URL, then use the "Tracked URL" generated in the custom redirect for the email CTA.

With this, MCAE will ingest the CustomURLActivity DLO that can be mapped to the Website Engagement DMO, then filter the DMO with the Data Source Object contains CustomURLActivity.

Important fields of CustomURLActivity DLO that can be mapped to Website Engagement DMO:

  • DataSourceObject__c: CustomURLActivity_OUvxxxxx
  • externalCustomUrlId__c: this is Pardot's Custom Redirect ID
  • polymorphicCustomUrlId__c: this is Custom Redirect ID in Salesforce called MarketingLink object - prefix 0S0
  • externalProspectId__c: this is Pardot's Prospect ID
  • polymorphicIndividualId__c: this is Salesforce Lead ID or Contact ID - prefix 00Q/003


Monday, October 19, 2026

Data 360: Email Engagement DMO and Bulk Email Message DMO

For MCAE users, the Email Engagement DMO is mapped to the Email Activity DLO. Important fields in this DMO:
  • ssot__EngagementDateTm__c: activity date time
  • ssot__BulkEmailMessageId__c: reference to Bulk Email Message DMO: 0XB
  • ssot__IndividualId__c: individual field, can refer to Lead ID or Contact ID: 00Q/003
  • ssot__EngagementChannelActionId__c: stores information: SEND_STATUS, OPEN, CLICK, BOUNCE, UNSUBSCRIBE, and SUBSCRIBE
Because Email Activity DLO comes from the MCAE Email Activity data stream, this DMO does not have information about emails sent to each individual from Salesforce, but only emails sent from MCAE / Pardot for both List Email and Automated Email.


Bulk Email Message DMO is mapped from ListEmail DLO, which is streamed from the Salesforce ListEmail object. Important fields in this DMO:
  • ssot__Id__c: 0XB
  • ssot__ScheduledDate__c: the email sent date 
  • ssot__CampaignId__c: the campaign ID
  • Sent_Via__c: store information email sent from Pardot or Salesforce
  • ssot__SendMethodType__c: store information email sent is List Email or Automated Email
Each row of Email Engagement DMO stores recipient ID, email status, etc., while Bulk Email Message DMO stores aggregate information, such as Total Sent, Total Delivered,  UniqueOpens, etc.; there is no individual-level information in this DMO.

But this DMO stores aggregated email information sent from both Salesforce (List Email) and Pardot (List and Automated Email).







Saturday, October 17, 2026

Data 360: Calculated Insight using SQL for Segment

For Calculated Insights created using SQL (not Visual Builder), there is no "Show in Builder" option under the dropdown menu. 

If you edit the SQL and save the Calculated Insight, you must republish the Calculated Insight to get the new result. Also, you can't edit the SQL if there is a structural change, such as changing or removing an output field; the recommended solution is to create a new CI.

What is the SQL requirement in a Calculated Insight?

Syntax
SELECT <Attributes>, <Aggregation[_Measures_]>.
FROM <Data Model Object>
JOIN [Inner | Left | Right | Full] <Data Model Object> [Optional]
WHERE <predicate on rows> [Optional]
GROUP BY <columns[_Dimensions_]>

1. Must include a Profile Key
The output must contain a key that can be related back to the segment population, depending on whether your segment is built on Unified Individual or Individual.

2. Must include at least one aggregated measure
Calculated Insights require aggregation such as: COUNT(), SUM(), MAX(), MIN(), AVG().

3. Must have a GROUP BY

Sample SQL:
SELECT 
UnifiedIndividual__dlm.ssot__Id__c AS unifiedindividual_id__c, 
UnifiedIndividual__dlm.ssot__FirstName__c AS first_name__c, 
UnifiedIndividual__dlm.ssot__LastName__c AS last_name__c, 
ssot__EmailEngagement__dlm.ssot__EngagementChannelActionId__c AS channel__c,
COUNT(ssot__EmailEngagement__dlm.ssot__EmailMessageId__c) AS count_of_email_engagement__c, 
MIN(ssot__EmailEngagement__dlm.ssot__EngagementDateTm__c) AS first_date__c,
MAX(ssot__EmailEngagement__dlm.ssot__EngagementDateTm__c) AS last_date__c  
FROM ssot__EmailEngagement__dlm 
JOIN ssot__Individual__dlm ON (ssot__EmailEngagement__dlm.ssot__IndividualId__c = ssot__Individual__dlm.ssot__Id__c) 
JOIN IndividualIdentityLink__dlm ON (ssot__Individual__dlm.ssot__Id__c = IndividualIdentityLink__dlm.SourceRecordId__c) 
JOIN UnifiedIndividual__dlm ON (IndividualIdentityLink__dlm.UnifiedRecordId__c = UnifiedIndividual__dlm.ssot__Id__c) 
WHERE (ssot__EmailEngagement__dlm.ssot__EngagementDateTm__c >= date_sub(current_date(), 7)) 
GROUP BY unifiedindividual_id__c, first_name__c, last_name__c, channel__c

Sample data from the above query to show how the JOIN works:
ssot__EmailEngagement__dlm.ssot__IndividualId__c = 003xxx or 00Qxxx
ssot__Individual__dlm.ssot__Id__c = 003xxx or 00Qxxx
IndividualIdentityLink__dlm.SourceRecordId__c = 003xxx or 00Qxxx
IndividualIdentityLink__dlm.UnifiedRecordId__c = c434453739ba80ff0cee6df928b19cde 
UnifiedIndividual__dlm.ssot__Id__c = c434453739ba80ff0cee6df928b19cde


In the Segment

Create a segment, type the CI name under the Search Attributes box, and use the aggregated "measure" attribute in the Include tab.


Can I run SQL from Calculated Insight in Query Editor?

Calculated Insight SQL and Query Editor SQL are similar, but there are some differences;

1.  When filtering by date field
In Query Editor: 
WHERE (ssot__EmailEngagement__dlm.ssot__EngagementDateTm__c >= DATE_ADD('day', -7, CURRENT_DATE)) 
OR 
WHERE (ssot__EmailEngagement__dlm.ssot__EngagementDateTm__c >= CURRENT_DATE - INTERVAL '7' DAY) 

In Calculated Insight: 
WHERE (ssot__EmailEngagement__dlm.ssot__EngagementDateTm__c >= date_sub(current_date(), 7)) 


2. Attribute name must end with __c in CI
In Query Editor
SELECT UnifiedIndividual__dlm.ssot__FirstName__c AS first_name

In Calculated Insight: 
SELECT UnifiedIndividual__dlm.ssot__FirstName__c AS first_name__c


3. The ORDER BY clause is not supported in CI


Wednesday, October 14, 2026

Data 360: Query Syntax

1. Object or Field Name
Use " " or nothing.
SELECT * FROM EmailActivity_0Uvxxxx__dll WHERE "eventType__c" <> 'OPEN' LIMIT 10

2. String match - Text field
Use ' ' and case-sensitive
SELECT * FROM EmailActivity_0Uvxxxx__dll WHERE "eventType__c" <> 'OPEN' LIMIT 10

3. Filter on Boolean field
SELECT * FROM ssot__Individual__dlm  WHERE "Is_FieldName__c" IS NOT TRUE LIMIT 10
OR
SELECT * FROM ssot__Individual__dlm  WHERE "Is_FieldName__c" IS TRUE LIMIT 10

4. Filter on Text field
SELECT * FROM "ssot__Account__dlm" WHERE "Customer__c" <> '' LIMIT 10
OR
SELECT * FROM "ssot__Account__dlm" WHERE "Customer__c" = '' LIMIT 10

5. Filter on DateTime field
SELECT
    l."Status__c" AS Lead_Status,
    COUNT(DISTINCT l."Id__c") AS Total_Leads,
    COUNT(
        DISTINCT CASE
            WHEN e."createdAt__c" >= TIMESTAMP '2026-05-01 00:00:00'
             AND e."createdAt__c" <= TIMESTAMP '2026-05-31 23:59:59'
             AND e."sendStatus__c" = 'SENT'
            THEN l."Id__c"
        END
    ) AS Contacted_May_2026
FROM "Lead_Home__dll" l
LEFT JOIN "EmailActivity_0Uvxxxx__dll" e
    ON l."Id__c" = e."prospectSalesforceId__c"
GROUP BY Lead_Status
ORDER BY Lead_Status;




Referral:

Friday, September 25, 2026

Salesforce MCAE: Using to Data Cloud segment

How to use Data Cloud segments in MCAE?

Create Segment in Data 360

  1. Make sure the Account Engagement Integration ID is mapped in the object for the segment
  2. Use the default data space
  3. Add the segment attributes
  4. Schedule and publish the segment
** Interestingly, we do not need activation to allow the segment to be used in MCAE.

Create Dynamic List in MCAE:

  1. Best practice: create the dynamic list name to include the segment name of Data 360, so at a glance you know which segment is used; for example: Dyn_D360_Automotive West; Dyn = dynamic, D360 = use Data 360 segment, and Automotive West = the segment name in Data 360.
  2. Up to 100 dynamic lists can be built in MCAE using Data Cloud Segments
  3. Up to 1 million prospects per list
  4. Each segment can be connected to one dynamic list; this is why the naming convention in dynamic lists is important.
  5. A new dynamic list can take up to 3 hours to populate for the first time. Allow up to 1 hour for a dynamic list to update after a Data 360 segment is refreshed.
  6. Record counts can vary between MCAE dynamic lists and Data 360 segments. For example, prospects in the Recycle Bin or those without a matching Data 360 Account Engagement Integration ID and Salesforce ID aren't counted. Segments in Data 360 can be built on Individuals, Unified Individuals, Leads, or Contacts. The object that you choose affects the value in the Account Engagement Integration ID field.
  7. You can use a calculated insight to define and calculate multidimensional metrics in Data 360 based on prospect data or email engagement data from MCAE, then use the calculated insights to define segment criteria.
  8. If we change the segment name in Data 360, the "Segment Name" information in the dynamic list created will be updated too.
Sample dynamic list from the screenshot: red boxes are the dynamic list information, and blue boxes are segment information.




Reference: 



Wednesday, August 26, 2026

MCAE and Salesforce Email in Data 360

In this blog, we discussed Email Activity DLO, or Email Engagement DMO. This blog will continue with how the MCAE and Salesforce email information is stored in Data 360.

We can get information from 3 objects related here; ideally, this should be done in DMO.

1. Email Engagement DMO / Email Activity DLO

This is the base object that stores all emails sent from MCAE. This object can be related to the Bulk Email Message DMO with key: Email Engagement object (field Bulk Email Message) related to Bulk Email Message object (field Bulk Email Message Id). The relationship needs to be set up from the child object, which is the Email Engagement DMO.

A few important fields from this object:

  • Bulk Email Message Id starts with the prefix 0XB
  • Engagement Date Time: when the record is created
  • Individual information starts with the prefix 003 (contact) or 00Q (lead)
  • Engagement Channel Action: SEND_STATUS, CLICK, and OPEN
  • Email Recipient Send Status: SENT or blank

Again, you can check all other fields in this object from this blog.


2. Bulk Email Message DMO / List Email DLO

We can treat this as the parent object, Email Engagement; the data is coming from both emails sent from Salesforce List Email and from MCAE, which is synced from data stored in the ListEmail object in Salesforce.

We can create a Salesforce report using the "Bulk Email Message with Email Engagement" report type; however, because of the "with", this means only Bulk Email Message has child records of Email Engagement DMO, which also means the results are ListEmail sent from MCAE only.

Because the Campaign ID field is in this object, we can relate it to the Campaign DMO. The relationship needs to be created from this object to Campaign. 


The 1st relationship is the Bulk Email Message object with key field = Campaign, related to the parent object Campaign with key field = Campaign ID.

The 2nd relationship is the same as mentioned in the Email Engagement DMO relationship above.

    A few important fields from this object:

    • Send Method Type: List Email or Automated Email
    • Sent Via: Salesforce or Pardot
    • Email stat fields such as: Total Sent, Total Delivered, Total Hard/Soft Bounces, Unique Opens, and Unique Clicks
    • Subject
    • From Name and From Address
    • Name, which is the List Email name
    Creating a Salesforce report using the Bulk Email Message report type will return all records for emails sent from Salesforce and MCAE, similar to a query to Salesforce's ListEmail object.


    3. Campaign

    As the objects have been linked, we can use Query Editor to run SQL to get the results as needed. So, instead of showing Campaign ID, we can get the campaign name, owner, start date, end date, etc. 




    Page-level ad