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.
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. |
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. |
For more information about using the RevenueScheduleAutomationService, see the Revenue Management API Developer Reference which is listed in Permission Sets and Other Technical Documentation.