SCM API Developer Reference

scmc.SalesOrdersService

global with sharing class SalesOrdersService

this service is used to support actions that are performed on a sales order.

Methods

createFromCustomerQuotationId

global static Id createFromCustomerQuotationId(Id customerQuotationId)

This method creates a Sales Order from a Customer Quotation

Input Parameters

Name Type Description
customerQuotationId Id The ID of the customer quotation from which Sales Order has to be created.

Exceptions Thrown

Value Description
Exception An exception indicating a problem encountered while creating a sales order

Return Value

Id of the created Sales Order

Sample Code

//Note: This sample code is for demonstration purposes only. It is not intended for
//use in a production environment, is not guaranteed against defects or errors, and
//is in no way optimized or streamlined.

Id customerQuotationId = 'a069E0000004NBO';

Id salesOrderId = SCMC.SalesOrdersService.createFromCustomerQuotationId(customerQuotationId);
© Copyright 2009–2022 FinancialForce.com, inc. All rights reserved. Various trademarks held by their respective owners.