Outbound sync Flow recipe

Outbound sync Flow recipe

Outbound sync (Salesforce to Bullhorn) is deliberately driven by Flows that you own. The package provides one invocable action; you decide per object when it fires. This keeps entry conditions, field sensitivity and org-specific automation rules in your hands.

The action is named Bullhorn: Enqueue Outbound Sync (category Bullhorn Sync). It only writes a queue record, it performs no callouts, so it is safe in any record-triggered Flow context. A background processor picks the queue up within seconds.

Action inputs

Input Required Value
Record Id Yes The Salesforce record to sync, normally {!$Record.Id}
Bullhorn Entity Name Yes The mapped Bullhorn entity, for example ClientContact. Must match a BH Entity Mapping record whose direction is Outbound or Bidirectional
Changed Fields (CSV) No Comma separated Salesforce field API names that changed. Strongly recommended for updates: only changed and mapped fields are sent to Bullhorn. Leave empty on create
Action No Set to DELETE to soft delete the record in Bullhorn

Create and update Flow

  1. Create a record-triggered Flow on the object, for example Contact.
  2. Trigger: a record is created or updated. Optimize for actions and related records (after save).
  3. Entry conditions: see the two rules below.
  4. Add the action Bullhorn: Enqueue Outbound Sync with Record Id {!$Record.Id} and the entity name.
  5. For updates, pass Changed Fields as a formula that lists what changed, for example:
SUBSTITUTE(TRIM(
  IF(ISCHANGED({!$Record.LastName}), "LastName ", "") &
  IF(ISCHANGED({!$Record.Email}), "Email ", "") &
  IF(ISCHANGED({!$Record.MobilePhone}), "MobilePhone ", "")
), " ", ",")

Fields you never map can be left out of the formula; changes to them then produce an empty CSV and the engine treats the update as having nothing to send.

Rule 1: do not filter on the suppress flag

Do not add an entry condition that skips records whose suppress checkbox (bh_3b__BH_Suppress_Sync__c on Account and Contact) is true. The action itself handles suppression: when it runs for a suppressed record it clears the checkbox and creates no event. That is how an inbound write is consumed as an echo. If your Flow never runs for suppressed records, the checkbox is never cleared and a later real user edit would be swallowed as an echo.

Rule 2: exclude external id write-back changes

After an outbound create, the integration writes the new Bullhorn id into the record's external id field (bh_3b__BH_External_Id__c on Account and Contact). That update fires your Flow again. Keep it out of the queue by making sure your entry condition or Changed Fields formula ignores changes to the external id field:

The same applies to the suppress and delete helper checkboxes: do not list them as changed fields.

Delete Flow

Bullhorn deletes are soft deletes. Two common patterns:

A delete for a record that never reached Bullhorn (empty external id) completes as a no-op.

What the processor does with the event

Details, including dependency errors and the Placement safe create, are in Inbound and outbound sync engines. Failure handling and retries are covered in Retry and error handling.

Programmatic alternative

Apex automation can enqueue the same way without a Flow:

bh_3b.BH_SyncApi.enqueueOutbound(recordId, 'ClientContact',
    new Set<String>{ 'LastName', 'Email' });