This package provides a comprehensive logging solution for Salesforce Data Cloud activities. It enables organizations to track and monitor Data Cloud operations by capturing activity logs in a custom Salesforce object, providing better visibility into Data Cloud activities across multiple activity types.
The Data Cloud Activity Logging solution allows organizations to:
- Track Data Cloud activities in real-time
- Monitor activity status and outcomes
- Capture detailed error messages for troubleshooting
- Maintain audit trails of Data Cloud operations
- Analyze activity patterns and performance metrics
- Data Cloud Activity Log (
Data_Cloud_Activity_Log__c)- Stores activity log records with the following fields:
- Activity Name
- Activity Type
- Event Time
- Status
- Record Count
- Records Processed
- Records Failed
- Error Message
- Additional Details
- Source Record ID
- Source Record URL
- Stores activity log records with the following fields:
- Data Cloud - Logging - Activation - Logs activation activities
- Data Cloud - Logging - Calculated Insights - Logs calculated insights processing
- Data Cloud - Logging - Create Activity Log Record - Core flow to create activity log records
- Data Cloud - Logging - Data Graph - Logs data graph operations
- Data Cloud - Logging - Data Stream - Logs data stream activities
- Data Cloud - Logging - Identity Resolution - Logs identity resolution processes
- Data Cloud - Logging - Segment - Logs segment activities
- Data Cloud - Logging - Template - Template flow for creating custom logging flows
-
Data Cloud Activity Log RO Access (
Data_Cloud_Activity_Log_RO_Access)- Read-only access to Data Cloud Activity Log object
- Read access to all custom fields
- Tab set to "Visible" by default
- View all records permission
-
Data Cloud Activity Log RW Access (
Data_Cloud_Activity_Log_RW_Access)- Read and write access to Data Cloud Activity Log object
- Create and edit permissions (delete excluded for safety)
- Full field-level access
- Tab set to "Visible" by default
- View all records permission
- Data Cloud Activity Log Layout - Standard layout for viewing and editing activity log records
- Data Cloud Activity Log - Custom tab for easy access to activity logs
- All - Default list view showing all records
- All Records - Alternative list view for all activity log records
- Salesforce org with Data Cloud enabled
- Sufficient user permissions to deploy metadata
- Salesforce CLI (sf) installed (for command-line deployment)
# Navigate to the package directory
cd DataCloudActivityLogging
# Deploy to your org
sf project deploy start --manifest manifest/package.xml --target-org YOUR_ORG_ALIAS
# Or deploy and run tests
sf project deploy start --manifest manifest/package.xml --target-org YOUR_ORG_ALIAS --test-level RunLocalTests- Create a zip file of the package contents (excluding README.md)
- Log in to Workbench (workbench.developerforce.com)
- Navigate to: Migration > Deploy
- Upload the zip file
- Check "Single Package"
- Click "Next" and then "Deploy"
- Right-click on the
manifest/package.xmlfile - Select "SFDX: Deploy Source in Manifest to Org"
- Select your target org
-
Assign Permission Sets
- Navigate to Setup > Permission Sets
- Assign
Data Cloud Activity Log RO Accessto users who need read-only access - Assign
Data Cloud Activity Log RW Accessto users/processes that need to create/edit logs
-
Verify Tab Visibility
- The "Data Cloud Activity Log" tab should be visible to users with the permission sets
- Users can access the tab from the App Launcher
-
Test Flows
- Trigger Data Cloud activities to verify logging is working
- Check the Data Cloud Activity Log object for new records
- Review the flow logs in Setup > Process Automation > Flow to ensure flows execute successfully
- Monitor Data Cloud activities from the Data Cloud Activity Log tab
- Use list views to filter activities by type or status
- Export activity logs for reporting and analysis
- Investigate errors using the Error Message and Additional Details fields
- Use the Template flow to create custom logging flows for new activity types
- Call the "Create Activity Log Record" subflow from other automation
- Extend the custom object with additional fields as needed
- Create custom reports and dashboards using the activity log data
The solution follows a modular architecture:
- Each Data Cloud activity type has a dedicated logging flow
- All flows use the "Create Activity Log Record" flow as a subflow
- The Template flow provides a starting point for new activity types
- Permission sets provide flexible access control
- Review and archive old activity logs periodically
- Monitor storage usage of the custom object
- Update flows when new Data Cloud features are added
- Review permission set assignments
- Add custom fields to track additional information
- Create custom list views for specific filtering needs
- Build reports and dashboards for activity analysis
- Modify flows to capture organization-specific details
For issues, questions, or contributions, please contact your Salesforce administrator or the Data Cloud team.
- v1.0 (January 2026) - Initial release
- 8 logging flows covering major Data Cloud activity types
- Custom object with 11 custom fields
- 2 permission sets for flexible access control
- Standard layouts and list views
This package is provided as-is for use within your Salesforce organization.