Conga Product Documentation

Welcome to the new doc site. Some of your old bookmarks will no longer work. Please use the search bar to find your desired topic.

download

Resuming Assets

You can invoke this global method to resume suspended assets.

API

Signature

resumeAssets

static Apttus_Config2.CPQStruct.ResumeAssetResponseDO resumeAssets(Apttus_Config2.CPQStruct.ResumeAssetRequestDO request)

Parameters

Name
Type
Description
Request Apttus_Config2.CPQStruct. ResumeAssetRequestDO

Request object invoked by the method

Request Data Object - Apttus_Config2.CPQStruct. ResumeAssetRequestDO

Field

Type

Description

Is Required

assetIds List<Id>

List of asset IDs to be resumed.

Yes

CartId Id

Product configuration ID.

Yes

CustomData Map<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

NewStartDate Date

New start date for the resumed assets.

Tip:

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

Errors List<String>

Contains errors messages if any operations failed.

IsSuccess Boolean

Indicates whether the resume asset operation is successful.

LineItemMap Map <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 );