Creating Maintenance Plan Using Apex Action
The following are the details about the Create Maintenance Plan Apex action.
CPQ Action Services
Class Name: CreateMaintenancePlanApexAction
Label: Create Maintenance Plan
Structure: CreateMaintenancePlanApexAction.createMaintenancePlan(List<MaintenancePlanData>)
Request Parameters
The following table explains the parameters required for creating a Maintenance Plan through Apex action.
Parameter
Mandatory?
Description
sourceRecordId
Yes
The SFDC record Id of the Account record.
maintenancePlanTitle
No
The Maintenance Plan title of the newly created Maintenance Plan.
startDate
Yes
The Start Date of the Maintenance Plan.
dateOfFirstWorkOrderInNextBatch
No
The Date of the first work order in the next batch will be used to populate in the Maintenance Plan.
maintenancePlanTemplateProductId
Yes
The SFDC Id of the Product record used to find the Maintenance Plan Template using which the Maintenance Plan needs to be created.
subscriptionId
No
The Id of the Subscription object that needs to be copied to one of the Maintenance Plan's fields.
subscriptionFieldName
No
The field name on the Maintenance Plan object is a lookup to a Subscription object.
Was this helpful?