Services CPQ API Developer Reference

ffscpq.CreateEstimateService

global with sharing class CreateEstimateService

A service that provides functionality related to creating estimates.

Methods

createEstimates

global static List<ffscpq.CreateEstimateService.CreateEstimateResponse> createEstimates(List<ffscpq.CreateEstimateService.CreateEstimateRequest> requests)

A method that creates estimates.

Input Parameters

Name Type Description
requests List<ffscpq.CreateEstimateService.CreateEstimateRequest> The list of CreateEstimateRequest.

Return Value

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

ffscpq.CreateEstimateService.CreateEstimateRequest

global with sharing class CreateEstimateRequest

The request structure for creating an estimate.

Properties

Name Type Description
EstimateData ffscpq__Estimate__c An estimate record with field values for the new estimate.
SourceEstimateId Id [Optional] The estimate to copy related records from.
IncludeSkills Boolean If true, skills are copied from the existing estimate to the new estimate. The default value is true.
IncludeEstimatedExpenses Boolean If true, estimated expenses are copied from the existing estimate to the new estimate. The default value is true.
IncludeEstimateVendorLineItems Boolean If true, vendor line items are copied from the existing estimate to the new estimate. The default value is true.
IsTemplate Boolean If true, the new estimate is marked as a template. The default value is false.
FieldOverridesByType Map<SObjectType, Map<SObjectField, Object>> [Optional] The specified object fields will be overridden to the supplied values. If SourceEstimateId is not set, this will have no effect. Supported Objects: ffscpq__Estimate_Line_Set__c ffscpq__Estimate_Task__c ffscpq__Estimate_Role_Request__c ffscpq__Estimated_Expense__c ffscpq__Estimate_Vendor_Line_Item__c ffscpq__Estimate_Role_Skill_Request__c
--- Unsupported Fields: CurrencyIsoCode ffscpq__Start_Date__c ffscpq__End_Date__c Hierarchy Lookups (for example, ffscpq__Estimate_Task__c.ffscpq__Estimate__c) Rollup fields on records (for example, ffscpq__Net_Bill_Amount__c, ffscpq__Cost_Amount__c, ffscpq__Bill_Amount__c), except additional cost rollups, such as estimated expense amounts

Methods

CreateEstimateRequest

global CreateEstimateRequest(ffscpq__Estimate__c estimateData)

Input Parameters

Name Type Description
estimateData ffscpq__Estimate__c Contains data for the new estimate.

ffscpq.CreateEstimateService.CreateEstimateResponse

global with sharing class CreateEstimateResponse

The result returned after creating an estimate.

Properties

Name Type Description
JobId Id The AsyncApexJob Id. If this is null, the request was completed synchronously.
Estimate ffscpq__Estimate__c The estimate record.
© Copyright 2009–2023 Certinia Inc. All rights reserved. Various trademarks held by their respective owners.