Services CPQ API Developer Reference

ffscpq.ActionAddEstimateProduct

global with sharing class ActionAddEstimateProduct

A service that provides functionality related to adding estimate products to estimates.

Methods

addEstimateProductsToEstimates

global static List<ffscpq.ActionAddEstimateProduct.InvocableAddEstimateProductsToEstimatesAPIResponse> addEstimateProductsToEstimates(List<ffscpq.ActionAddEstimateProduct.InvocableAddEstimateProductsToEstimatesAPIRequest> invocableAddEstimateProductsToEstimatesRequests)

A method that adds estimate products to estimates.

Input Parameters

Name Type Description
invocableAddEstimateProductsToEstimatesRequests List<ffscpq.ActionAddEstimateProduct.InvocableAddEstimateProductsToEstimatesAPIRequest> The list of InvocableAddEstimateProductsToEstimatesAPIRequest. The number of unique target estimates cannot exceed 50 within all requests.

Return Value

This service returns InvocableAddEstimateProductsToEstimatesAPIResponse in a list that parallels the input list.

ffscpq.ActionAddEstimateProduct.InvocableAddEstimateProductsToEstimatesAPIRequest

global with sharing class InvocableAddEstimateProductsToEstimatesAPIRequest

The request class to pass multiple parameters to the invocable method.

Properties

Name Type Description
EstimateId Id The estimate to copy the estimate product to.
EstimateProductId Id The estimate product to be copied.
EstimateProductInstanceBillingType String [Optional] The billing type for the copied estimate product instance. Must be 'Fixed Price' or 'Time and Materials'. If this is not provided the estimate product's default billing type is used.
EstimateProductInstanceFixedPriceMargin Decimal [Optional] The fixed price margin for the copied estimate product instance. If the billing type is specified as 'Fixed Price', this parameter is mandatory. If the billing type is specified as 'Time and Materials' or is not provided, this parameter is not used.
Name String [Optional] The name for the copied estimate product instance. If this is not provided the estimate product's name is used.
StartDate Date [Optional] The start date of the copied estimate product instance will be offset relative to this date. If this is not provided the estimate's start date is used.
RegionOverride Id [Optional] The region of the copied role requests. This will override the region specified on the source estimate product.
PracticeOverride Id [Optional] The practice of the copied role requests. This will override the practice specified on the source estimate product.
GroupOverride Id [Optional] The group of the copied role requests. This will override the group specified on the source estimate product.

Methods

InvocableAddEstimateProductsToEstimatesAPIRequest

global InvocableAddEstimateProductsToEstimatesAPIRequest()

ffscpq.ActionAddEstimateProduct.InvocableAddEstimateProductsToEstimatesAPIResponse

global with sharing class InvocableAddEstimateProductsToEstimatesAPIResponse

The response class for the invocable method.

Properties

Name Type Description
EstimateProductId Id The estimate product that was added.
EstimateId Id The estimate which the estimate product was added to.
JobId Id The AsyncApexJob ID. If this is null, the request was not processed due to an error.
Errors List<ffscpq.AddEstimateProductService.AddEstimateProductError> A list containing errors that occurred while processing the request.
© Copyright 2009–2023 Certinia Inc. All rights reserved. Various trademarks held by their respective owners.