FabricFabricHarness
EcosystemChannels

Salesforce Marketing Cloud

Connect Marketing Cloud events with governed campaign actions.

fh add channel salesforce-marketing-cloud
import { createSalesforceMarketingCloudChannel } from '@fabric-harness/channels/salesforce-marketing-cloud';

export default createSalesforceMarketingCloudChannel({
  signatureKey: process.env.SFMC_ENS_SIGNATURE_KEY!,
  agent: 'engagement',
});

Register and verify the ENS callback at POST /channels/salesforce-marketing-cloud/webhook, then store the callback's signature key. The adapter verifies x-sfmc-ens-signature over the complete batch, expands events into durable dispatches, propagates MID/business-unit tenancy, and deduplicates by composite ID, event type, and timestamp.

Use sendMarketingCloudMessage(ref, { restBaseUrl, accessToken, definitionKey, recipient }) for a governed transactional send.

Treat sends, journey changes, subscriber mutations, and data-extension writes as high-impact operations requiring least-privilege OAuth, audit, and approval.