AptlyStar

Salesforce

Available Salesforce triggers for automating workflows

Salesforce provides 6 triggers for automating workflows based on events.

Triggers

Salesforce Case Status Changed

Trigger workflow when a case status changes

Configuration

ParameterTypeRequiredDescription
webhookSecretstringYesRequired. Use the same value in your Salesforce HTTP Callout as Bearer token or X-AptlyStar-Webhook-Secret.

Output

ParameterTypeDescription
eventTypestringThe type of event
aptlystarEventTypestringOptional alias from the payload (aptlystarEventType). Empty when only eventType is sent.
objectTypestringSalesforce object type (Case)
recordIdstringCase ID
timestampstringWhen the event occurred (ISO 8601)
recordobjectrecord output from the tool
↳ IdstringCase ID
↳ SubjectstringCase subject
↳ StatusstringCurrent case status
↳ PrioritystringCase priority
↳ CaseNumberstringCase number
↳ AccountIdstringRelated Account ID
↳ ContactIdstringRelated Contact ID
↳ OwnerIdstringCase owner ID
previousStatusstringPrevious case status
newStatusstringNew case status
payloadjsonFull webhook payload

Salesforce Opportunity Stage Changed

Trigger workflow when an opportunity stage changes

Configuration

ParameterTypeRequiredDescription
webhookSecretstringYesRequired. Use the same value in your Salesforce HTTP Callout as Bearer token or X-AptlyStar-Webhook-Secret.

Output

ParameterTypeDescription
eventTypestringThe type of event
aptlystarEventTypestringOptional alias from the payload (aptlystarEventType). Empty when only eventType is sent.
objectTypestringSalesforce object type (Opportunity)
recordIdstringOpportunity ID
timestampstringWhen the event occurred (ISO 8601)
recordobjectrecord output from the tool
↳ IdstringOpportunity ID
↳ NamestringOpportunity name
↳ StageNamestringCurrent stage name
↳ AmountstringDeal amount
↳ CloseDatestringExpected close date
↳ ProbabilitystringWin probability
↳ AccountIdstringRelated Account ID (standard Opportunity field)
↳ OwnerIdstringOpportunity owner ID
previousStagestringPrevious stage name
newStagestringNew stage name
payloadjsonFull webhook payload

Salesforce Record Created

Trigger workflow when a Salesforce record is created

Configuration

ParameterTypeRequiredDescription
webhookSecretstringYesRequired. Use the same value in your Salesforce HTTP Callout as Bearer token or X-AptlyStar-Webhook-Secret.
objectTypestringNoWhen set, the payload must include matching object type metadata (for example objectType, sobjectType, or attributes.type) or the event is rejected.

Output

ParameterTypeDescription
eventTypestringThe type of event (e.g., created, updated, deleted)
aptlystarEventTypestringOptional alias from the payload (aptlystarEventType). Empty when only eventType is sent.
objectTypestringSalesforce object type (e.g., Account, Contact, Lead)
recordIdstringID of the affected record
timestampstringWhen the event occurred (ISO 8601)
recordobjectrecord output from the tool
↳ IdstringRecord ID
↳ NamestringRecord name
↳ CreatedDatestringRecord creation date
↳ LastModifiedDatestringLast modification date
↳ OwnerIdstringRecord owner ID (standard field when sent in the Flow body)
↳ SystemModstampstringSystem modstamp from the record (ISO 8601) when included in the payload
changedFieldsjsonFields that were changed (for update events)
payloadjsonFull webhook payload

Salesforce Record Deleted

Trigger workflow when a Salesforce record is deleted

Configuration

ParameterTypeRequiredDescription
webhookSecretstringYesRequired. Use the same value in your Salesforce HTTP Callout as Bearer token or X-AptlyStar-Webhook-Secret.
objectTypestringNoWhen set, the payload must include matching object type metadata (for example objectType, sobjectType, or attributes.type) or the event is rejected.

Output

ParameterTypeDescription
eventTypestringThe type of event (e.g., created, updated, deleted)
aptlystarEventTypestringOptional alias from the payload (aptlystarEventType). Empty when only eventType is sent.
objectTypestringSalesforce object type (e.g., Account, Contact, Lead)
recordIdstringID of the affected record
timestampstringWhen the event occurred (ISO 8601)
recordobjectrecord output from the tool
↳ IdstringRecord ID
↳ NamestringRecord name
↳ CreatedDatestringRecord creation date
↳ LastModifiedDatestringLast modification date
↳ OwnerIdstringRecord owner ID (standard field when sent in the Flow body)
↳ SystemModstampstringSystem modstamp from the record (ISO 8601) when included in the payload
changedFieldsjsonFields that were changed (for update events)
payloadjsonFull webhook payload

Salesforce Record Updated

Trigger workflow when a Salesforce record is updated

Configuration

ParameterTypeRequiredDescription
webhookSecretstringYesRequired. Use the same value in your Salesforce HTTP Callout as Bearer token or X-AptlyStar-Webhook-Secret.
objectTypestringNoWhen set, the payload must include matching object type metadata (for example objectType, sobjectType, or attributes.type) or the event is rejected.

Output

ParameterTypeDescription
eventTypestringThe type of event (e.g., created, updated, deleted)
aptlystarEventTypestringOptional alias from the payload (aptlystarEventType). Empty when only eventType is sent.
objectTypestringSalesforce object type (e.g., Account, Contact, Lead)
recordIdstringID of the affected record
timestampstringWhen the event occurred (ISO 8601)
recordobjectrecord output from the tool
↳ IdstringRecord ID
↳ NamestringRecord name
↳ CreatedDatestringRecord creation date
↳ LastModifiedDatestringLast modification date
↳ OwnerIdstringRecord owner ID (standard field when sent in the Flow body)
↳ SystemModstampstringSystem modstamp from the record (ISO 8601) when included in the payload
changedFieldsjsonFields that were changed (for update events)
payloadjsonFull webhook payload

Salesforce Webhook (All Events)

Trigger workflow on any Salesforce webhook event

Configuration

ParameterTypeRequiredDescription
webhookSecretstringYesRequired. Use the same value in your Salesforce HTTP Callout as Bearer token or X-AptlyStar-Webhook-Secret.
objectTypestringNoWhen set, the payload must include matching object type metadata (for example objectType, sobjectType, or attributes.type) or the event is rejected.

Output

ParameterTypeDescription
eventTypestringThe type of event
aptlystarEventTypestringOptional alias from the payload (aptlystarEventType). Empty when only eventType is sent.
objectTypestringSalesforce object type
recordIdstringID of the affected record
timestampstringWhen the event occurred (ISO 8601)
recordjsonFull record data
payloadjsonFull webhook payload

On this page