01Opportunity → ERP sales order
Build this integration“When an Opportunity becomes Closed Won, create or update the customer in Priority, create the sales order, synchronize the products and pricing, and send the fulfillment and invoice status back to Salesforce.”
PartnerMCP will
- Subscribe to Opportunity
Change Event and act when IsWon becomes true. - Match or create the ERP customer from the Account, and keep the ERP customer number in an External ID field.
- Build the order from OpportunityLineItems — ProductCode, Quantity, UnitPrice and Discount — never from Amount.
- Compare the ERP's computed total with Opportunity.
Amount and flag differences. - Write the order number, delivery and invoice status back with upsert by external ID.