Skip to content

Salesforce Data Cloud Activity Logging Solution - Track and monitor Data Cloud operations with custom objects, automated flows, and flexible access controls

Notifications You must be signed in to change notification settings

everanngitmaker/datacloud-activity-logging

Repository files navigation

Data Cloud Activity Logging Solution

Overview

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.

Purpose

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

Package Components

Custom Object

  • 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

Flows (8)

  1. Data Cloud - Logging - Activation - Logs activation activities
  2. Data Cloud - Logging - Calculated Insights - Logs calculated insights processing
  3. Data Cloud - Logging - Create Activity Log Record - Core flow to create activity log records
  4. Data Cloud - Logging - Data Graph - Logs data graph operations
  5. Data Cloud - Logging - Data Stream - Logs data stream activities
  6. Data Cloud - Logging - Identity Resolution - Logs identity resolution processes
  7. Data Cloud - Logging - Segment - Logs segment activities
  8. Data Cloud - Logging - Template - Template flow for creating custom logging flows

Permission Sets (2)

  1. 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
  2. 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

Page Layout

  • Data Cloud Activity Log Layout - Standard layout for viewing and editing activity log records

Custom Tab

  • Data Cloud Activity Log - Custom tab for easy access to activity logs

List Views (2)

  • All - Default list view showing all records
  • All Records - Alternative list view for all activity log records

Installation

Prerequisites

  • Salesforce org with Data Cloud enabled
  • Sufficient user permissions to deploy metadata
  • Salesforce CLI (sf) installed (for command-line deployment)

Deployment Options

Option 1: Using Salesforce CLI

# 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

Option 2: Using Workbench

  1. Create a zip file of the package contents (excluding README.md)
  2. Log in to Workbench (workbench.developerforce.com)
  3. Navigate to: Migration > Deploy
  4. Upload the zip file
  5. Check "Single Package"
  6. Click "Next" and then "Deploy"

Option 3: Using VS Code with Salesforce Extensions

  1. Right-click on the manifest/package.xml file
  2. Select "SFDX: Deploy Source in Manifest to Org"
  3. Select your target org

Post-Deployment Steps

  1. Assign Permission Sets

    • Navigate to Setup > Permission Sets
    • Assign Data Cloud Activity Log RO Access to users who need read-only access
    • Assign Data Cloud Activity Log RW Access to users/processes that need to create/edit logs
  2. 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
  3. 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

Usage

For Administrators

  • 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

For Developers

  • 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

Architecture

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

Maintenance

Regular Tasks

  • 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

Customization

  • 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

Support and Contribution

For issues, questions, or contributions, please contact your Salesforce administrator or the Data Cloud team.

Version History

  • 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

License

This package is provided as-is for use within your Salesforce organization.

About

Salesforce Data Cloud Activity Logging Solution - Track and monitor Data Cloud operations with custom objects, automated flows, and flexible access controls

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published