Event-driven integration using Salesforce Apex, AWS Lambda (Python), and APIs for DocuSign and NetSuite. Automates quote approval → contract generation → sales order creation → fulfillment tracking.
- apex/: Salesforce triggers and queueables
- lambda/: Python AWS Lambda functions and API clients
- README.md: Documentation
- Salesforce
- Create Named Credential
AWS_Orchestratorto your API Gateway URL. - Deploy
QuoteTrigger.apxtandSendQuoteToOrchestrator.apxc.
- Create Named Credential
- AWS Lambda (Python 3.11)
- Deploy
lambda_orchestrate_quote.pybehind API Gateway (/start). - Deploy
lambda_docusign_connect.pybehind API Gateway for DocuSign Connect. pip install -r requirements.txt -t .for each function bundle.- Create DynamoDB table for idempotency and set
IDEMPOTENCY_TABLEenv var.
- Deploy
- DocuSign
- Configure JWT app + RSA key. Point Connect webhook to the connect Lambda URL.
- NetSuite
- Enable REST + Token-Based Auth. Create integration + access tokens.
- Security
- Use environment variables and secret manager. Never commit secrets.
See .env.example for a full list. Do not commit real secrets.
- Replace the stubbed PDF with your real Quote PDF from Salesforce Files or a template.
- Add proper field and item mappings for NetSuite. Cache lookups to reduce latency.
- Add retries/backoff on HTTP 429/5xx and alarms in CloudWatch.