Salesforce Data Transformer

An Apex extension point that lets you embed custom transformation logic in a DSP formula when the built-in functions are not enough.

Interface Definition

apex
global interface pushtopic.SalesforceDataTransformer {
    /**
     * Specifies an array of field API names to retrieve from the source records.
     * This ensures DSP includes all required fields during the Retrieve step,
     * making them available for the Scoping, Match, and Mapping steps.
     */
    String[] retrieveSourceFields();

    Object transform(List<Map<String, Object>> contextSourceRecords,
                     Map<String, Object> currentSourceRecord,
                     String assignedToFieldName);
}

How to Use

Implement pushtopics.SalesforceDataTransformer, then reference the class in a target field's mapping with $ClassName.

Reference the SalesforceDataTransformer class in a target field's mapping