What you’ll achieve
You can import Salesforce Opportunities into Sanka Orders and automatically create sales invoices when an order is created.Overall flow
- Periodically import Salesforce Opportunities into Orders
- Create sales invoices triggered by order creation
- Carry over status or owner fields as needed
Prerequisites
- Salesforce and Sanka integration is set up
- Required fields for Orders and Sales Invoices (customer, amount, currency, invoice date, etc.) are configured in Sanka
- You can store a unique Opportunity identifier (Opportunity ID) on the Order
Steps
1. Workflow A: Import Salesforce Opportunities into Orders (time trigger)
- In Sanka, open Workflow and select Create workflow.
- Choose Time trigger and set the interval.
- Add the Import records action and select Order as the object.
- Select Salesforce as the connected service and configure the Opportunity → Order field mappings.
- Optionally filter by stage, last updated date, and other conditions.
- Save and enable the workflow.
2. Workflow B: Create sales invoices from Orders (event trigger)
- Create a new workflow and choose Order created as the trigger.
- Add the Create record action and select Sales Invoice as the object.
- Enable Use data from trigger to carry over Order fields to the invoice.
- Optionally set fixed values like invoice date, due date, or status.
- Add a filter to prevent duplicate creation for the same Order.
- Save and enable the workflow.
3. Verify the flow
- Create a test Opportunity in Salesforce.
- Wait for the import to run or trigger it manually.
- Confirm an Order is created in Sanka and a sales invoice is automatically generated.
Common pitfalls
- Orders are not imported: check the integration status, import conditions, and mappings.
- Invoices are not created: confirm required fields and that the workflow is enabled.
- Duplicate invoices: add a unique key filter (e.g., Opportunity ID).