CData Python Connector for Salesforce Marketing Cloud

Build 25.0.9454

JourneyActivities

Contains details about journey activities in Salesforce Marketing Cloud. A journey activity represents an action or decision point in a customer journey, such as sending an email or evaluating a contact attribute. This table allows you to create, update, and query journey activities to refine automation workflows.

Table Specific Information

Select

Retrieve journey activities for the latest version of the specified journey:

SELECT * FROM JourneyActivities WHERE JourneyId = '1cb643b5-3144-4d17-80fa-a1f0035e78e2'

Retrieve journey activities for a specific journey version:

SELECT * FROM JourneyActivities WHERE JourneyId = '1cb643b5-3144-4d17-80fa-a1f0035e78e2' AND JourneyVersion = 1

Retrieve journey activities from all journeys with a specific version:

SELECT * FROM JourneyActivities WHERE JourneyVersion = 1

Insert

To create a new journey activity, you will need to specify at least the JourneyId, JourneyVersion, Type, Key, Arguments, ConfigurationArguments column.

INSERT INTO JourneyActivities (JourneyId, JourneyVersion, Type, Key, Arguments, ConfigurationArguments) VALUES ('4753026f-20b2-481b-89c5-fcd76ffa41f7', 1, 'WAIT', 'WAITBYDURATION-1', '{
  "waitEndDateAttributeDataBound": "",
  "waitDefinitionId": "f3de0c9a-5ff8-4f7b-84bd-9309ca337227",
  "waitForEventId": "",
  "executionMode": "{{Context.ExecutionMode}}",
  "startActivityKey": "{{Context.StartActivityKey}}",
  "waitQueueId": "{{Context.WaitQueueId}}"
}', '{
  "waitDuration": 1,
  "waitUnit": "DAYS",
  "specifiedTime": "",
  "timeZone": "",
  "description": "",
  "waitEndDateAttributeExpression": "",
  "specificDate": "",
  "waitForEventKey": ""
}')

Update

Journey activities may be modified by providing the Id, JourneyId, JourneyVersion and issuing an UPDATE statement.

UPDATE JourneyActivities SET Description = 'First_Journey_Activity_Description', Outcomes = '[
  {
    "key": "11bb2807-3f3d-4305-af51-547df032dbaf",
    "next": "WAITBYDURATION-1",
    "arguments": null,
    "metaData": null
  }
]' WHERE Id = 'fa4c3d81-8043-40e2-9741-22708d3a2e25' AND  JourneyId = '4753026f-20b2-481b-89c5-fcd76ffa41f7' AND JourneyVersion = 1

Columns

Name Type ReadOnly References Filters Description
Id [KEY] String True

Specifies the unique identifier (Id) that Marketing Cloud assigns to the activity. This Id links the activity to its corresponding configuration within Journey Builder.

JourneyId [KEY] String True

Journeys.Id

=

Specifies the unique Id of the journey that contains this activity. This Id is generated by the Journey Builder API when the journey is created and ensures that the activity is associated with the correct journey record.

JourneyVersion [KEY] Integer True

Journeys.Version

=

Specifies the version number of the journey that contains this activity. Each version represents a published or edited state of the journey and helps distinguish activity behavior across iterations.

Key String False

Specifies the customer key that uniquely identifies the activity within the journey. This key remains stable across edits and is used for API calls, configuration storage, and journey versioning.

Name String False

Specifies the display name of the activity as shown in the Journey Builder user interface. This name helps users identify the purpose or function of the activity during journey design.

Description String False

Specifies the descriptive text that explains the purpose or behavior of the activity. This description provides context to users who configure or troubleshoot the journey.

Type String False

Specifies the activity type (for example, email activity, wait activity, event activity, or decision activity). Each activity type expects specific inputs that must be provided for the activity to run correctly within the journey.

Outcomes String False

Specifies the JSON array that defines the available outcomes for the activity. Outcomes determine the paths a contact can follow after the activity executes (for example, success, failure, or custom-defined branching results).

Arguments String False

Specifies the set of arguments that the activity requires at runtime. These arguments define operational behavior (for example, message payloads, wait durations, filter conditions, or event-mapped values). Each activity type requires its own argument structure.

ConfigurationArguments String False

Specifies the arguments that the activity uses during both publish time and runtime. These arguments define configuration values, mappings, or settings that must remain consistent across journey versions for the activity to execute correctly.

Copyright (c) 2025 CData Software, Inc. - All rights reserved.
Build 25.0.9454