ffscpq.MoveEstimateDatesServiceglobal with sharing class MoveEstimateDatesService A service that provides functionality related to moving estimate dates. Methods
moveEstimateDatesglobal static List<ffscpq.MoveEstimateDatesService.MoveEstimateDatesResponse> moveEstimateDates(List<ffscpq.MoveEstimateDatesService.MoveEstimateDatesRequest> requests) A method that moves the dates of estimates. Input Parameters
Return ValueThis service returns MoveEstimateDateResponse in a list that parallels the input list. 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.
// A list of estimate IDs that will be moved by the specified amount.
List<Id> estimateIds = new List<Id>{ 'a6321000000XmT0AaC' };
// The number of days to move all of the records contained in the estimate.
Integer dateOffset = 5;
// Construct the request
ffscpq.MoveEstimateDatesService.MoveEstimateDatesRequest request = new ffscpq.MoveEstimateDatesService.MoveEstimateDatesRequest(
estimateIds,
dateOffset
);
List<ffscpq.MoveEstimateDatesService.MoveEstimateDatesResponse> responses = ffscpq.MoveEstimateDatesService.moveEstimateDates(
new List<ffscpq.MoveEstimateDatesService.MoveEstimateDatesRequest>{ request }
);
// Extract the IDs of the estimates whose dates have been moved successfully.
System.debug('Ids of moved estimates: ' + responses[0].EstimateIds);
moveEstimateDatesAsyncglobal static Id moveEstimateDatesAsync(List<ffscpq.MoveEstimateDatesService.MoveEstimateDatesRequest> requests) A method that moves the dates of estimates asynchronously. Input Parameters
Return ValueThis service returns the AsyncApexJob ID. ffscpq.MoveEstimateDatesService.MoveEstimateDatesRequestglobal with sharing class MoveEstimateDatesRequest The request structure for moving the dates of estimates. Properties
MethodsMoveEstimateDatesRequestglobal MoveEstimateDatesRequest(List<Id> estimateIds, Integer dateOffset) Input Parameters
ffscpq.MoveEstimateDatesService.MoveEstimateDatesResponseglobal with sharing class MoveEstimateDatesResponse The result returned after moving the dates of estimates. Properties
MethodsMoveEstimateDatesResponseglobal MoveEstimateDatesResponse(List<Id> estimateIds) |