allowRollbackRevenue API checks if the Rollback Revenue Action is allowed for the given Agreement and Legal Entity. 

result allowRollbackRevenue(agreementID, legalEntityID)

This API accepts the agreement ID  and legal entity ID as input parameters. It checks if the RecRec Active flag is selected and Agreement RevRec Period Date is greater than the Current RevRec Period. 

Request Parameters

Request
FieldTypeRequiredDescription
agreementIDIDYesID of the Agreement.
legalEntityIDIDYesID of the Legal Entity


Response Parameter

Response
FieldTypeDescription
resultInteger

Returns 1 if the Agreement RevRec Period Date is greater than the Current RevRec Period. 

Returns 0 if the Agreement RevRec Period Date is less than the Current RevRec Period. 



Code Sample

ID agreementId = 'a566A000000PRh5QAG';
ID legalEntityId = 'a566A000000PRh87GH';
Apttus_Revenue2.RevRecAction. allowRollbackRevenue(agreementId, legalEntityId);
CODE