scmc.PurchaseContractsServiceglobal with sharing class PurchaseContractsService This class is used to support all the various actions that are performed on a purchase contract. EnumsMethods
cancelPurchaseContractglobal static void cancelPurchaseContract(Set<Id> purchaseContractIds) Cancels the specified purchase contracts. Input Parameters
Exceptions Thrown
activatePurchaseContractglobal static void activatePurchaseContract(Set<Id> purchaseContractIds) Activates the specified purchase contracts and their purchase contract lines. Input Parameters
Exceptions Thrown
applyChangeRequestglobal static scmc.PurchaseContractsService.ApplyChangeRequestAnswer applyChangeRequest(Id changeRequestId) Applies the specified change request to its purchase contract. Only approved change requests can be applied. Input Parameters
Return ValueThis method returns an ApplyChangeRequestAnswer object. createChangeRequestsglobal static Map<Id, scmc.PurchaseContractsService.CreateChangeRequestsAnswer> createChangeRequests(Set<Id> purchaseContractIds) Creates change requests for the specified purchase contracts. Change request can only be created for active contracts. Input Parameters
Return ValueThis method returns a map of purchase contract IDs and CreateChangeRequestsAnswer objects. deleteChangeRequestLineglobal static Map<Id, scmc.PurchaseContractsService.DeleteChangeRequestLineAnswer> deleteChangeRequestLine(Set<Id> changeRequestLinesIds) Deletes the specified change request lines. Lines associated with an original contract line are set to a status of Expired. Input Parameters
Return ValueThis method returns a map of line IDs and deleteChangeRequestLineAnswer objects. scmc.PurchaseContractsService.ApplyChangeRequestAnswerglobal inherited sharing class ApplyChangeRequestAnswer This class is used as the object returned by the applyChangeRequest global service. This object contains a change request ID and the ID of the purchase contract it is applied to. If a change request ID is invalid and cannot be applied, an error message is returned instead of the purchase contract ID. Properties
MethodsApplyChangeRequestAnswerglobal ApplyChangeRequestAnswer() scmc.PurchaseContractsService.CreateChangeRequestsAnswerglobal inherited sharing class CreateChangeRequestsAnswer This class is used as the object returned by the createChangeRequests global service. This object contains the IDs of the created change requests. If a change request is not created due to one or more errors, a list of error messages is returned instead of the change request ID. Properties
MethodsCreateChangeRequestsAnswerglobal CreateChangeRequestsAnswer() scmc.PurchaseContractsService.DeleteChangeRequestLineAnswerglobal inherited sharing class DeleteChangeRequestLineAnswer This class is used as the object returned by the deleteChangeRequestLine global service. This object contains the ID of the change request that the deleted line belongs to and the status that the line is set to (Expired or Deleted). If a line cannot be deleted because its ID is invalid, an error message is returned instead of the line status. Properties
MethodsDeleteChangeRequestLineAnswerglobal DeleteChangeRequestLineAnswer() |