![]() Service Contract API Developer's Reference
|
scmsc.ChangeRequestAPIglobal with sharing class ChangeRequestAPI This API class is used to create change requests, create change request lines and apply changes back to the service contract. AuthorFinancialForce.com, inc Date7/06/2015 Methods
applyChangeRequestToContractglobal static string applyChangeRequestToContract(Id ApprovedChangeRequestId) Applies the changes from a single change request to the service contract associated with it. Input Parameters
Exceptions Thrown
Return ValueStatus indicating success, failure reason, or that a batch job has been scheduled. applyChangesToContractThroughChangeReqglobal static Id applyChangesToContractThroughChangeReq(Id Service_Contract_Id, list<scmsc.apiCRLExtended> API_CRL_Extended_List) Creates a change request and submits it for approval based on the changes being requested in the Input Parameters
Exceptions Thrown
Return ValueId of the change request created. createChangeRequestglobal static SCMC__Change_Request__c createChangeRequest(Id Service_Contract_Id) Creates a single change request. Input Parameters
Exceptions Thrown
Return ValueId of the change request created. newChangeRequestLineglobal static SCMC__Change_Request_Line__c newChangeRequestLine(Id ChangeRequestId) Creates a blank change request line. Input Parameters
Exceptions Thrown
Return ValueBlank change request line newChangeRequestLineForSCLglobal static SCMC__Change_Request_Line__c newChangeRequestLineForSCL(Id SerivceContractLineID, Id ChangeRequestId) Creates a change request line for a single contract line. Input Parameters
Exceptions Thrown
Return ValueChange request line submitChangeRequestForApprovalglobal static string submitChangeRequestForApproval(Id ChangeRequestId) Submits a change request for Approval. Input Parameters
Exceptions Thrown
Return ValueStatus code indicating success or a failure reason. |