You can invoke this global method to resume suspended assets.

APISignature
resumeAssetsstatic Apttus_Config2.CPQStruct.ResumeAssetResponseDO resumeAssets(Apttus_Config2.CPQStruct.ResumeAssetRequestDO request)
Parameters
Name
Type
Description
RequestApttus_Config2.CPQStruct. ResumeAssetRequestDORequest object invoked by the method
Request Data Object - Apttus_Config2.CPQStruct. ResumeAssetRequestDO

Field

Type

Description

Is Required
assetIdsList<Id>List of asset IDs to be resumed.Yes
CartIdIdProduct configuration ID.Yes
CustomDataMap<String, String>Custom field values to be updated. For example, you can pass the reason for resumption as custom data. You can pass more than one custom field.No
NewStartDateDate

New start date for the resumed assets.

This parameter will be effective in future when Conga CPQ supports the resumption of assets from the date specified in this parameter.

No

Response Data Object - Apttus_Config2.CPQStruct. ResumeAssetResponseDO

Field

Type

Description

ErrorsList<String>Contains errors messages if any operations failed.
IsSuccessBooleanIndicates whether the resume asset operation is successful.
LineItemMapMap <ID, Apttus_Config2__LineItem__c>Indicates the line items to be resumed.


Code Sample

The following code sample helps you suspend assets.

List<Apttus_Config2__AssetLineItem__c> assetLinesToResume = [SELECT Id, Apttus_Config2__StartDate__c 
														     FROM Apttus_Config2__AssetLineItem__c
															 WHERE Apttus_Config2__AccountId__c = '001630000142XpT'
														     AND Apttus_Config2__ProductId__r.Name = 'AutoABO_ORN_Standalone04'];

// asset ids to be suspended
List<Id> assetIds = new List<Id>();
for (Apttus_Config2__AssetLineItem__c assetLineSO :  assetLinesToResume) 
{
	assetIds.add(assetLineSO.Id);
}

CPQStruct.ResumeAssetRequestDO request = new CPQStruct.ResumeAssetRequestDO();
request.CartId = 'a5663000002DQKs';
request.assetIds = assetIds;
request.NewStartDate = Date.today();
CPQStruct.ResumeAssetResponseDO response = AssetService.resumeAssets(request);
system.debug( response );
CODE