Newer Version Available
COA_ServiceOrderSubmit Class
Namespace
Usage
For details about namespace prefixes or the @InvocableMethod annotation, see the Apex Developer Guide.
Example
Order Status
When you submit a draft order using the COA_ServiceOrderSubmit class, the response tells you if the operation succeeded. The response doesn’t set the status of the related service order record, so the Service_Order_Status__c field remains Draft. If you build an implementation to set the status of submitted orders, we suggest the following logic: if the response includes a success code, set the order status to Received. Otherwise, set the status to Error. For orders with errors, you can store notes from Salesforce Partner Operations in the Error_Comment__c field.