Chargent Support Center


Run the batch job from the Developer Console

When doing development, it is useful to be able to run the Chargent scheduled apex for the recurring batch on demand, instead of scheduling it and waiting until that time is reached. 

1. Choose  Developer Console  at the right top corner in the dropdown list under the User name.  
dev console

2. In just opened window go te the  Debug -> Open Execute Anonymous Window  or just use 
CTRL+E  hotkey.  
debug image

3. Clear the  Enter Apex  

Code  window.

4. Paste this code to execute the batch and click  Execute  button.  
Apex Code
For Orders package: ChargentOrders.TChargentBatchProcessing b = new ChargentOrders.TChargentBatchProcessing();
Database.executeBatch(b); 

5. After the steps above one Apex Job will be executed. You may return to the Salesforce org and monitor the Job status ( Setup -> Monitoring -> Apex Jobs ).


Related Articles

996e33de7bae3639f2380ddcfaf383d7@chargent.desk-mail.com
https://cdn.desk.com/
false
desk
Loading
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
about
false
Invalid characters found
/customer/en/portal/articles/autocomplete