Filtering / Modifying Push to SalesForce data
-
Hey there,
Great plugin so far. If I can harness the filtering process then this solution will be in my opinion the best out there regarding synchronization of WP and SF.
I’ve looked through all the documentation and comments here, however I’m still having trouble modifying the data that’s to be pushed to SF. In my instance, I need to take an image ID and convert that to a full url to store on the SalesForce side (since the image ID is useless outside of WP).
Anyhow, this is my starting point – but when I test this within functions.php, all pushes to SF stop working and I’m not seeing any errors.
Any clues?
add_filter( 'object_sync_for_salesforce_push_params_modify', 'modify_values', 10, 6 ); function modify_values( $params, $mapping, $object, $sf_sync_trigger, $is_new ) { $new_value = "modified filter value"; $params = array( 'my_acf_field' => $new_value, ); return $params; }
Thanks!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Filtering / Modifying Push to SalesForce data’ is closed to new replies.