scmc.RecurringPurchaseOrderServiceglobal with sharing class RecurringPurchaseOrderService A service to provide recurring Purchase Order functionality. Methods
createglobal static Map<Id, List<Id>> create(Set<Id> purchaseOrderIdSet) Creates recurring purchase orders from a given purchase order. Recurring purchase orders created from an approved purchase order have the same record type value as the original purchase order by default. The purchase order from which the recurring purchase order is created must have the Recurring Purchase Order? check box checked and a status of Approved. Input Parameters
Exceptions Thrown
Return ValueMap<Id, List<Id>> where the key is the given purchase order ID and the value is a list of IDs for the newly created recurring purchase orders against the key. 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. Set<Id> purchaseOrderIds = new Set<Id>{'a069E0000004NBO'}; Map<Id,List<Id>> recurringPOIdsByPOIds = SCMC.RecurringPurchaseOrderService.create(purchaseOrderIds); createFromPurchaseContractglobal static void createFromPurchaseContract(scmc.CreateFromPurchaseContractRequest request) Creates a recurring purchase order from the specified purchase contract. The new purchase order is an Approved Internal Purchase Order record type by default. Input Parameters
Exceptions Thrown
|