The framework identifies and retrieves all active and open cases from the existing case management system, including associated customer information, case status, priority, ownership, and interaction history.
The extracted data is transformed into a format compatible with the target case management platform. Corresponding cases are created while preserving relationships and reference mappings between the source and target systems to ensure traceability.
A synchronization service continuously monitors both platforms for new case creation and case updates. Any changes made in either system are automatically replicated to the other, ensuring both platforms remain consistent throughout the migration period.
During the transition phase, both systems operate in parallel with synchronized case data. This allows business users to continue working from either platform, providing operational flexibility and a reliable fallback while users gradually adopt the new system.

- Amazon AppFlow extracts Case records from Salesforce based on the configured migration schedule.
- Extracted case data is exported and stored as files in an Amazon S3 bucket.
- An S3 Event Notification triggers the Lambda function whenever a new case file is uploaded to S3.
- The Lambda function validates, transforms, and sends case records to Amazon SQS in batches.
- SQS buffers the case records and triggers the Case Creation Lambda at a controlled rate to prevent API throttling.
- The Lambda function invokes the Amazon Connect Create Case API to create cases in the Amazon Connect Cases Domain.

- Cases created/updated in Salesforce initiate platform events.
- Salesforce Event Relays send events to Amazon EventBridge.
- EventBridge evaluates incoming events against configured rules and routes eligible events for further processing.
- Events are queued in Amazon SQS for processing.
- SQS delivers events to AWS Lambda in batches.
- AWS Lambda will create a case or update a case based on the input request.

- Amazon Connect Cases generates near real-time events whenever a case is created or updated.
- Amazon EventBridge receives the case events on the configured event bus.
- EventBridge routes the events to Amazon SQS for reliable and scalable processing.
- SQS delivers the events to AWS Lambda in batches for controlled processing.
- SQS delivers events to AWS Lambda in batches
- Lambda invokes the Salesforce Case API to create or update the corresponding case records in Salesforce.





