Revenue Management API Developer Reference


global with sharing class StagingTableService

Deprecated: As of V3.3 this class has been replaced by ffrr.StagingService. A new Staging process has been introduced.




Indicates the status of a revenue recognition batch job.

Value Description
Aborted The job was aborted by a user before it completed.
Completed The job has completed successfully.
Failed The job has failed.
Preparing The data is being prepared.
Processing The data is being processed.
Queued The job is ready to start.
Holding The job is waiting to enter the queue.



The type of transactions associated with the Batch Job.

Value Description
Actual The batch job is associated with Actual records.
Forecast The batch job is associated with Forecast records.
Manage The batch job is associated with the Manage Actual vs Forecast records.



Indicates the type of revenue recognition batch job.

Value Description
Creating The batch job will create records.
Deleting The batch job will delete records.
Updating The batch job will update records.


global with sharing class Job


Contains the details of a revenue recognition batch job.

Sample Code

//Note: This sample code is for demonstration purposes only. It is not intended for
//use in a production environment, is not guaranteed against defects or errors, and
//is in no way optimized or streamlined.

//Create the Job
ffrr.StagingTableService.Job jSample = new ffrr.StagingTableService.Job();

//Specify the job's ID
jSample.ID = 'a0aa00000621d86';

//Specify what type of job this is
jSample.type = ffrr.StagingTableService.JobType.CREATING;

//Specify the job's status
jSample.status = ffrr.StagingTableService.JobStatus.ABORTED;

//Specify the date relating to the job type
jSample.lastDataCreation = date.newInstance(2013, 3, 31);
jSample.lastDataDeletion = null;
jSample.lastDataUpdated = null;

//Specify which group this job relates to, which recognition date was
//used and how many records were processed
jSample.groupName = Account.getSObjectType();
jSample.recognitionDate = date.newInstance(2013, 2, 28);
jSample.totalRecords = 5000;
jSample.processedRecords = 500;


Name Type Description Deprecation Details
id Id ID of the batch job from the Asynx Apex Job table.
errorMessage String Any error messages that are generated by the batch job.
groupName Schema.SObjectType Name of the group.
lastDataCreation DateTime Date and time a Create job was last run.
lastDataDeletion DateTime Date and time a Delete job was last run.
lastDataUpdated DateTime Date and time an update job was last run.
processedRecords Integer Number of items processed.
recognitionDate Date Date on which to base the revenue calculation.
status ffrr.StagingTableService.JobStatus The status of the batch job.
totalRecords Integer Total number of records to be processed.
transactionType ffrr.StagingTableService.JobTransactionType The type of the transactions associated with the Batch Job.
type ffrr.StagingTableService.JobType The type of batch job.
© Copyright 2009–2022, inc. All rights reserved. Various trademarks held by their respective owners.