Services CPQ API Developer Reference

ffscpq.MoveEstimateDatesService

global with sharing class MoveEstimateDatesService

A service that provides functionality related to moving estimate dates.

Methods

moveEstimateDates

global static List<ffscpq.MoveEstimateDatesService.MoveEstimateDatesResponse> moveEstimateDates(List<ffscpq.MoveEstimateDatesService.MoveEstimateDatesRequest> requests)

A method that moves the dates of estimates.

Input Parameters

Name Type Description
requests List<ffscpq.MoveEstimateDatesService.MoveEstimateDatesRequest> The list of MoveEstimateDateRequest.

Return Value

This 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);

ffscpq.MoveEstimateDatesService.MoveEstimateDatesRequest

global with sharing class MoveEstimateDatesRequest

The request structure for moving the dates of estimates.

Properties

Name Type Description
EstimateIds List<Id> A list of IDs of the estimates to update the dates of.
DateOffset Integer The number of days to offset the estimates by.

Methods

MoveEstimateDatesRequest

global MoveEstimateDatesRequest(List<Id> estimateIds, Integer dateOffset)

Input Parameters

Name Type Description
estimateIds List<Id> Contains the list of IDs of the estimates to update the dates of.

ffscpq.MoveEstimateDatesService.MoveEstimateDatesResponse

global with sharing class MoveEstimateDatesResponse

The result returned after moving the dates of estimates.

Properties

Name Type Description
EstimateIds List<Id> A list of IDs of the estimates that have had their dates updated.

Methods

MoveEstimateDatesResponse

global MoveEstimateDatesResponse(List<Id> estimateIds)

© Copyright 2009–2023 Certinia Inc. All rights reserved. Various trademarks held by their respective owners.