What Are the Components of the Centro Action Platform Event?
The Centro Action Platform Event plays a critical role in the seamless integration between Slack and Salesforce within the Centro Rock platform. It enables real-time automation and workflow execution triggered by user activity in Slack. This article breaks down each component of the platform event to provide a comprehensive understanding of how it functions and what data it encompasses.
Overview
The Centro platform event is a structured Salesforce event that captures key metadata about an interaction within Slack, typically triggered by a user action such as clicking a button or reacting with an emoji. Each field in the event serves a specific purpose to inform downstream automation in Salesforce.
{
"Centro__Value__c": "0018a00002397j6AAA",
"Centro__UserId__c": "U07N7EL0DGS",
"Centro__ChannelId__c": "CAJC3D7RR",
"Centro__Message_TS__c": "1743614076.978249",
"Centro__Message_Text__c": "This might be a really basic question but I recently turned off all of my salesforce email notifications since I noticed I was also getting case alerts directly in salesforce, but when I turned off my email notifications, I also stopped getting the case alerts in salesforce.\n\nIs there a way to turn off emails but keep the activity alerts that show up in the little bell icon on?",
"Centro__Message_User_Email__c": "smccormick@sample.edu",
"Centro__Message_UserId__c": "U06QAT2AGLC",
"Centro__Message_Username__c": "Kate Carroll",
"Centro__Slack_User_Email__c": "bsmith@sample.edu",
"Centro__API_Name__c": "Help Desk IT"
}
Core Components of the Platform Event
Centro Value (Centro__Value__c)
Description: This field contains the Salesforce record ID.
Purpose: Identifies the Salesforce record from which the event was triggered.
Use Case: When a user initiates a Centro action from a Centro record block (e.g., a case, opportunity, or custom object), this ID anchors the event to that specific record.
Channel ID (Centro__ChannelId__c)
Description: The ID of the Slack channel in which the event took place.
Purpose: Helps contextualize where the interaction occurred, helpful in filtering or routing logic based on channel type (public, private, or Slack Connect).
Centro Message Timestamp (Centro__Message_TS__c)
Description: The unique timestamp ID of the message where the event was triggered.
Purpose: Anchors the event to a specific Slack message, allowing follow-up actions or messages to be threaded or referenced appropriately.
Centro Message Text (Centro__Message_Text__c)
Description: The actual text content of the Slack message where the action occurred.
Common Usage: Beneficial for global emoji reactions, where the message text provides context for the reaction.
Message User Metadata
This group of fields pertains to the original author of the message (not the person who triggered the event):
Centro Message User Email (Centro__Message_User_Email__c)
Description: The email address of the user who wrote the original Slack message.
Notes: In Slack Connect channels, this email may be unavailable due to privacy restrictions from external users.
Centro Message User ID (Centro__Message_UserId__c)
Description: The Slack user ID of the message author.
Purpose: Identifies the source of the original message, which may be relevant in threaded conversations or escalation logic.
Centro Message User Name (Centro__Message_Username__c)
Description: The display name of the message author in Slack.
Event Trigger User Metadata
This group of fields captures information about the user who triggered the event (this could be different from the message author):
Slack User Email (Centro__Slack_User_Email__c)
Description: The email address of the person who initiated the Centro action.
Purpose: Useful for linking Slack actions to Salesforce users or sending notifications.
Centro User ID (Centro__UserId__c)
Description: Captures the Slack user ID of the person who triggered the event.
Trigger Sources: Can be triggered by a Slack emoji reaction, a Slack message button, or another interactive element.
Purpose: Tracks who initiated the action for auditing, notifications, or further workflow logic.
Centro Slack Username (Centro__Slack__Username__c)
- Description: The display name of the user that triggers the event..
Workflow and API Configuration
Centro API Name (Centro__API_Name__c)
Description: A custom API name that can be defined manually or dynamically.
Configuration Options:
Can be set directly in Salesforce Flow steps or button configurations.
May be dynamically assigned during flow execution to support more complex routing or workflow scenarios.
Purpose: Provides a unique identifier for the specific workflow or action logic being triggered.
Summary
These ten components make up the Centro Action Platform Event, each contributing vital context to support real-time automation, tracking, and user interaction management between Slack and Salesforce. By leveraging these fields, administrators and developers can build robust flows that are responsive to Slack activity while staying tightly integrated with Salesforce records and logic.
If you have any questions about implementing or customizing the Centro Action Platform Event, please don't hesitate to contact your Centro support representative or technical team.