Asset 360 Suite > Asset 360 for End Users > Service Contracts > Service Contract Creation Using APIs > Adding Services to Service Contract Using Apex Actions
Adding Services to Service Contract Using Apex Actions
The application allows you to add Entitled Services to a Service Contract using the following Apex actions.
Parameters
The following table explains the parameters required for adding Entitled Services to the Service Contracts.
Parameters
Mandatory (Yes/No)
Description
serviceContractId
Yes
the ID of the Service Contract for which the ES needs to be created.
contractLineItemId
No
the record Id of the CLIs for which the ES needs to be created.
startDate
Yes
the Start Date of the CLI.
endDate
No
the End Date of the CLI. If not provided, the EndDate is calculated as StartDate + Duration in Plan.
entitledServiceName
Yes
the name of Entitled Service.
serviceProductId
Yes
the product ID.
serviceUnit
Yes
the type of service.
serviceQty
Yes
the quantity of the service in numbers.
thresholdAlert
No
workOrderEntitlementProcess
No
the ID of the WO Entitlement process, both of the entitlement process cannot be provided.
caseEntitlementProcess
No
the ID of the Case Entitlement process, both of the entitlement process cannot be provided.
subscriptionId
No
the ID of the Subscription object which needs to be copied to one of the ESs field.
subscriptionFieldName
No
the field name on ES which is lookup to Subscription object.
subscribedAssetId
No
the ID of the Subscription object which needs to be copied to one of the ES's field.
subscribedAssetFieldName
No
the field name on ES which is lookup to Subscribed Asset object.
The following screen shows the parameters in an org.
Was this helpful?