Conditionally Exclude Records on Salesforce Push

Created on 18 March 2022, over 2 years ago
Updated 17 August 2023, over 1 year ago

Problem/Motivation

We are pushing user records to Salesforce, which works great. However, we would like to exclude pushing records to Salesforce for users with a specific role (only push users with the "customer" role, not a "manager" or "administrator" role). Is there a way to conditionally exclude or limit records pushed to Salesforce, either programmatically or via the UI (similar to the Pull query SOQL "Where" clause).

Feature request
Status

Active

Version

5.0

Component

salesforce_push.module

Created by

🇨🇦Canada javdich

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • Have you considered using the salesforce.push_allowed event (previously hook_salesforce_push_entity_allowed)? This allows you to write an event listener with custom code to determine the conditions when a record should or should not be pushed. Or did you find some other solution to your problem?

Production build 0.71.5 2024