Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.

Supported Validations for DBT Segments

When creating or updating a segment, the ConnectApi.CdpSegmentInput class is subject to some SQL validations.

You can create a segment using the createSegment(input) method with the ConnectApi.CdpSegmentInput class. Similarly, you can update a segment using the updateSegment(segmentApiName, input) method with the same input class. The ConnectApi.CdpSegmentDbtModelInput input class, which is nested in the ConnectApi.CdpSegmentInput class, provides validation for the SQL.

The sql property of the ConnectApi.CdpSegmentDbtModelInput is subject to these validations.