# AutomationSequenceStepsBySequenceId Retrieve details for a sequence Retrieve details of a specific sequence by its ID. - Catalog: `Sequences` - Schema: `Basic` This is a read-only table function. The HubSpot API may not support changing the data or the Invantive UniversalSQL driver for HubSpot does not cover it. In the latter case, please use the table NativePlatformScalarRequests to upload data to the HubSpot API. ## Parameters of Table Function The following parameters can be used to control the behaviour of the table function `AutomationSequenceStepsBySequenceId`. A value must be provided at all times for required parameters, but optional parameters in general do not need to have a value and the execution will default to a pre-defined behaviour. Values can be specified by position and by name. In both cases, all parameters not specified will be evaluated using their default values. Value specification by position is done by listing all values from the first to the last needed value. For example: a `select * from table(value1, value2, value3)` on a table with four parameters will use the default value for the fourth parameter and the specified values for the first three. Value specification by name is done by listing all values that require a value. For example with `select * from table(name1 => value1, name3 => value3)` on the same table will use the default values for the second and fourth parameters and the specified values for the first and third. | Name | Data Type | Required | Default Value | Documentation | |---|:---:|:---:|:---:|---| | `sequenceId` | `` | ☑ | | | | `userId` | `` | ☑ | | | ## Columns of Table Function The columns of the table function `AutomationSequenceStepsBySequenceId` are shown below. Each column has an SQL data type. | Name | Data Type | Label | Required | Documentation | |---|:---:|---|:---:|---| | `actionType` | `varchar2` | | ☐ | The type of action to be performed in the sequence step. | | `createdAt_2` | `datetime` | | ☐ | The date and time when the sequence was created. | | `createdAt` | `datetime` | Created at | ☐ | The date and time when the sequence step was created. | | `delayMillis` | `int64` | | ☐ | The delay in milliseconds before the sequence step is executed. | | `emailPattern_createdAt` | `datetime` | | ☐ | The date and time when the email pattern was created. | | `emailPattern_id` | `varchar2` | | ☐ | The unique identifier of the email pattern. | | `emailPattern_templateId` | `varchar2` | | ☐ | The unique identifier of the email template associated with the pattern. | | `emailPattern_threadEmailToStepOrder` | `int32` | | ☐ | The order identifying the previous step to which the email thread is linked. | | `emailPattern_updatedAt` | `datetime` | | ☐ | The date and time when the email pattern was last updated. | | `folderId` | `varchar2` | Folder ID | ☐ | The identifier of the folder containing the sequence. | | `id_2` | `varchar2` | ID (Alternate 2) | ☐ | The unique identifier for the sequence. | | `id` | `varchar2` | ID | ☐ | The unique identifier of the sequence step. | | `name` | `varchar2` | Name | ☐ | The name of the sequence. | | `settings_createdAt` | `datetime` | | ☐ | The timestamp of when the sequence settings were created. | | `settings_eligibleFollowUpDays` | `varchar2` | | ☐ | Specifies the days on which follow-up actions are allowed. | | `settings_id` | `varchar2` | | ☐ | The unique identifier for the sequence settings. | | `settings_individualTaskRemindersEnabled` | `char` | | ☐ | Indicates whether individual task reminders are enabled. | | `settings_sellingStrategy` | `varchar2` | | ☐ | (deprecated) Defines the unenrollment strategy, with accepted values being ACCOUNT_BASED or LEAD_BASED. If ACCOUNT_BASED is used, all contacts associated with the same company will be unenrolled if one contact meets any of the unenrollment criteria. | | `settings_sendWindowEndMinute` | `int32` | | ☐ | Indicates the end minute of the time window during which automated emails can be sent. | | `settings_sendWindowStartMinute` | `int32` | | ☐ | Indicates the start minute of the time window during which automated emails can be sent. | | `settings_taskReminderMinute` | `int32` | | ☐ | Specifies the minute of day at which task reminders are triggered. | | `settings_updatedAt` | `datetime` | | ☐ | The timestamp of when the sequence settings were last updated. | | `stepOrder` | `int32` | | ☐ | The order of the step within the sequence. | | `taskPattern_createdAt` | `datetime` | | ☐ | The date and time when the task pattern was created. | | `taskPattern_id` | `varchar2` | | ☐ | The unique identifier for the task pattern. | | `taskPattern_notes` | `varchar2` | | ☐ | Additional notes or comments associated with the task. | | `taskPattern_queueId` | `int32` | | ☐ | The identifier for the queue associated with the task. | | `taskPattern_subject` | `varchar2` | | ☐ | The subject line of the task. | | `taskPattern_taskPriority` | `varchar2` | | ☐ | The priority level assigned to the task. | | `taskPattern_taskType` | `varchar2` | | ☐ | The type of task, such as an email or call. | | `taskPattern_templateId` | `int64` | | ☐ | The identifier for the template used in the task. | | `taskPattern_threadEmailToStepOrder` | `int32` | | ☐ | The order of the step to which the email thread is related. | | `taskPattern_updatedAt` | `datetime` | | ☐ | The date and time when the task pattern was last updated. | | `updatedAt_2` | `datetime` | | ☐ | The date and time when the sequence was last updated. | | `updatedAt` | `datetime` | Updated at | ☐ | The date and time when the sequence step was last updated. | | `userId` | `varchar2` | User ID | ☐ | The ID of the user associated with the sequence. |