What you’ll achieve
Import Salesforce opportunities into Sanka orders and automatically create inventory transactions (allocation) when orders are created.End-to-end flow
- Import Salesforce opportunities into orders on a schedule
- Create inventory transactions when orders are created
- Automate inventory and location updates
Prerequisites
- Salesforce and Sanka are connected
- Items, inventory, and locations are prepared in Sanka
- Order mapping correctly includes item and quantity
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 an Import records action and select Order as the object.
- Choose Salesforce as the integration service and configure the mapping from opportunities to orders.
- Optionally filter by stage, updated date, or other conditions.
- Save and enable the workflow.
2. Workflow B: Create inventory transactions from orders (event trigger)
- Create a new workflow and choose Order created as the trigger.
- Add a Create records action and select Inventory Transaction as the object.
- Enable Use data from trigger to carry over items and quantities from the order.
- Set the transaction type to Outbound.
- Optionally enable auto-create when inventory does not exist and specify allocation locations.
- Save and enable the workflow.
3. Validation
- Create a test opportunity in Salesforce.
- Wait for the import or run it manually.
- Confirm an order is created in Sanka and an inventory transaction is created automatically.
Common pitfalls
- Inventory transactions are not created: confirm item and quantity are present in the order lines.
- Inventory does not decrease: review inventory settings for the target location.
- Duplicate allocations: narrow the creation conditions for inventory transactions on the same order.