APEX CLASS

Description

pushtopics.SalesforceDataTransformer is a global interface that enables custom Apex logic within DSP formulas, extending the package’s out-of-box transformations when built-in functions are insufficient. Reference an implementation in a formula using the placeholder syntax #ApexClassName.

APEX CLASS
global interface pushtopics.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);
}

Example