Running the Automation via the API
The RevenueScheduleAutomationService is a global API that allows you to automate the end-to-end process for recognizing revenue and cost against recognition schedules, from generating the schedules through to creating Accounting journals.
The processes that can be started from the RevenueScheduleAutomationService are:
Sequential Order |
Process |
---|---|
1 | Delete Schedules Where Source Unavailable |
2 | Generate Schedules |
3 | Recognize Schedules |
4 | Summarize Transactions |
5 | Create Journals |
The automation runs each process asynchronously. For more information about each of these processes, see End-to-End Automation of Recognition Schedule Processes.
The processes always run in the sequential order shown in the table above, but you can choose which process to start from and which process to finish at. For example, if your org uses a customization to post recognition transactions to a third party accounting system you might want to automate processes 1-3 only.
When you run the automation a Revenue Management background process record is created, storing log information about the individual processes being run. Depending on the configuration parameters used, each individual process might send an email notification upon completion.
The configuration parameters you can specify for the RevenueScheduleAutomationService are listed below. For more information about using the RevenueScheduleAutomationService, see the Revenue Management API Developer Reference which is listed in Permission Sets and Other Technical Documentation.
Configuration Parameters
The configuration parameters you can specify for the RevenueScheduleAutomationService are:
Config Parameter |
Description |
---|---|
filteredCompanies | Run the selected processes on the specified companies only. |
filteredCurrencies | Run the selected processes on the specified currencies only. |
filteredRecognitionMethods |
Run the selected processes on the specified recognition methods only (% Complete, Deliverable, Equal Split). |
filteredRecognitionStreams | Run the selected processes on the specified recognition streams Source object groups. Each source object group has a primary source object and up to three additional levels of related source objects. Typical recognition streams might be Projects, Billing Contracts, and Sales Invoices. only. |
firstProcess | The process to start from. For example, if firstProcess = Generate and lastProcess = Summarize, then Generate, Recognize and Summarize will be run in that order. |
lastProcess | The process to finish at. For example, if firstProcess = Generate and lastProcess = Summarize, then Generate, Recognize and Summarize will be run in that order. |
summarizeTransactions |
Note: If this option is not specified it defaults to true. When the Summarize process is included in the processes to run:
When the CreateJournals process is included in the processes to run:
|
shouldSendEmailAtEndOfProcesses |
Note: If this option is not specified it defaults to true. When true, email notifications are sent after each individual process. When false, no email notifications at all are sent as a result of the API call. |
Recognition Configuration Parameters
In addition to the above configuration parameters, you can specify the following parameters if the Recognize process is included in the processes being run. They are ignored if the Recognize process is not included in the processes being run.
Config Parameter |
Description |
---|---|
recognitionPeriod |
The period to commit recognized values into:
|
selectionPeriod |
The cutoff period for including schedule lines for recognition:
|