allowGenerateRevenue API checks if the Generate Revenue Action is allowed for the given Agreement and Legal Entity. 

result allowGenerateRevenue2(agreementID, legalEntityID)

This API accepts the agreement ID  and legal entity ID as input parameters. It checks the RevRec Active flag and returns 1 if it selected.

Request Parameters

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


Response Parameter

Response
FieldTypeDescription
resultInteger

Returns 1 if the RevRec Active checkbox is selected.

Returns 0 if the RevRec Active checkbox is clear.



Code Sample

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