Import Salesforce Opportunities into Sanka Orders, then create invoice drafts with workflow checks, mappings, and AI-safe validation.
Last updated: May 28, 2026
/sanka Review this Salesforce Opportunity to Sanka Order to invoice workflow before it runs. Check Salesforce field visibility, Opportunity to Order mapping, unique Opportunity ID, customer and line-item mapping, Order trigger conditions, invoice required fields, duplicate invoice prevention, approval requirements, and history I should check after the test run. Do not enable the workflow, create production invoices, or send invoices yet.Review these checkpoints before treating missing invoices or duplicate invoices as product bugs. Most issues come from Salesforce field visibility, mapping, workflow conditions, required invoice fields, or duplicate-prevention rules.
| Issue | What to check |
|---|---|
| Orders are not imported | Check Salesforce connection, connected user field visibility, import filters, mapping, and import history. |
| Orders import without line items | Confirm Opportunity product or line-item data is visible and mapped to the expected Order line fields. |
| Invoices are not created | Confirm the Order trigger fired, workflow is enabled, conditions matched, and required invoice fields are present. |
| Duplicate invoices are created | Check whether the Opportunity imported twice, whether the Order trigger fired twice, and whether the workflow has a duplicate-prevention flag or condition. |
| Invoice values are wrong | Compare Salesforce Opportunity fields, Sanka Order fields, copied invoice fields, currency, tax, and line-item mapping. |
| AI wants to change code | Ask AI to compare connection, mapping, workflow history, action history, required fields, and permissions before proposing a code change. |