Assist_Design/docs/SALESFORCE-PORTAL-SIMPLE-GUIDE.md
T. Narantuya f305ee6e1a Implement Salesforce Platform Events for Order Provisioning
- Added support for Salesforce Platform Events, specifically subscribing to `OrderProvisionRequested__e` to trigger provisioning jobs.
- Introduced new environment variables for Salesforce event configuration, including SF_EVENTS_ENABLED, SF_PROVISION_EVENT_CHANNEL, and SF_PUBSUB_ENDPOINT.
- Refactored order fulfillment process to utilize event-driven architecture, enhancing reliability and scalability.
- Updated documentation to reflect changes in the provisioning workflow and environment variable requirements.
- Removed deprecated webhook handling code to streamline the integration.
2025-09-06 10:01:44 +09:00

11 lines
583 B
Markdown

# Simple Salesforce-to-Portal Communication Guide
This guide is deprecated for order provisioning. Use Platform Events (`OrderProvisionRequested__e`) as outlined in `SALESFORCE-ORDER-COMMUNICATION.md`.
Modern path (summary)
- Create High-Volume Platform Event `OrderProvisionRequested__e` (fields: `OrderId__c`, optional `IdemKey__c`).
- Record-Triggered Flow on Order approval publishes the event.
- Portal BFF subscribes to the event, enqueues a job, provisions in WHMCS, and updates Salesforce.
No inbound Salesforce webhooks or HMAC headers are required in this architecture.