updateForecastRevenueScheduleFromActuals API updates the Agreement Forecast Amount and units of the Agreement Forecast Revenue Schedule from Revenue Forecast Schedule based on the actual amount for a given agreement ID and period date.

result updateForecastRevenueScheduleWithActuals(agreementID, periodDate)

This API accepts agreement ID and period date as input parameters. It updates the Forecast Amount and units for a given agreement ID and period.

Request Parameters

Request
FieldTypeRequiredDescription
agreementIDIDYesID of the Agreement.
periodDateDateYesThe period date to update the forecast units and amounts.


Response Parameter

Response
FieldTypeDescription
resultBoolean

Returns true if the forecast revenue schedules are updated.

Returns false if the forecast revenue schedules are not updated.



Code Sample

ID agreementId = 'a566A000000PRh5QAG';
periodDate = Date.newInstance(2018,01,31) 
Apttus_Revenue2.RevRecAction.updateForecastFeeScheduleFromActuals(agreementId, periodDate);
CODE