Newer Version Available
Partner Order Submit API
Syntax
Usage
Use sendOrderAsync when you want to create or update multiple orders and send them in the same transaction. See the example in this section for more details.
Rules and Guidelines
This is an Apex implementation, so all Apex usage rules and limits apply. Salesforce supports only one order per call.
Use the Partner Submit API to send an order after it has been created using a valid Service Order ID. You can create Service Order and Service Order Detail records using the Channel Order App, data loading, or automated processing.
Each order must include the fields listed on the Service Order and Service Order Detail objects.
Methods
The ServiceOrderProcessor object supports the following methods.
| Name | Arguments | Description |
|---|---|---|
| sendOrder | ID | Submit an order with a single ID immediately. |
| sendOrder | Set of IDs | Submit an order with a set of IDs immediately. |
| sendOrderAsync | ID | Submit an order with a single ID asynchronously (@future). |
| sendOrderAsync | Set of IDs | Submit an order with a set of IDs asynchronously (@future). |
Example: Batching on the Partner Order Submit API
You can only invoke ServiceOrderProcessor once per Apex transaction. If you pass a set of IDs to sendOrder or sendOrderAsync, the maximum set size is 5. This example uses a batch job to work around this limitation.