Accounting API Developer's Reference


global with sharing class SwitchBalanceModeScheduler implements Schedulable

Schedules the Live Balance Type Switch to the other type.



global SwitchBalanceModeScheduler()

Sets up a new Switch Balance Mode Schedule at a specific time.

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.

String cronExpression = '0 0 13 ? * 5';
String jobName = 'Scheduled switch process';

System.schedule(jobName, cronExpression, new c2g.SwitchBalanceModeScheduler());


global void execute(SchedulableContext sc)

Executes the corresponding scheduled job. If you want to run the process immediately, use BalanceConfigurationService.switchMode service.