You are here:
Run an Apex Batch Process Manually
If you can’t wait for a scheduled Apex batch process to run at the scheduled time, you can run the batch process manually.

Use more general search terms.
Select fewer filters to broaden your search.
If you can’t wait for a scheduled Apex batch process to run at the scheduled time, you can run the batch process manually.
| Available in: Lightning Experience in Professional, Enterprise, and Unlimited Editions that have Consumer Goods Cloud enabled |
cgc_sync.PicklistAttributesMappingBatch picklistbatch = new cgc_sync.PicklistAttributesMappingBatch();
Id picklistBatchJobId = Database.executeBatch(picklistbatch, 100);
cgcloud.EffectiveAccountManagerSyncBatch effAccMgrbatch = new cgcloud.EffectiveAccountManagerSyncBatch();
Id effAccMgrbatchJobId = Database.executeBatch(effAccMgrbatch, 100);
cgcloud.FlattenAccountHierarchyBatch flattenAccBatch = new cgcloud.FlattenAccountHierarchyBatch();
Id flattenAccBatchJobId = Database.executeBatch(flattenAccBatch, 100);
cgcloud.AggregatePromotionBatch aggPrmoBatch = new cgcloud.AggregatePromotionBatch();
Id aggPrmoBatchJobId = Database.executeBatch(aggPrmoBatch, 100);
cgcloud.AccountManagerOrgUnitBased accMgrOrgUnit= new cgcloud.AccountManagerOrgUnitBased();
Id accMgrOrgUnitJobId = Database.executeBatch(accMgrOrgUnit, 100);
cgcloud.AuthorizationListSetupBatch authListSetupBatch = new cgcloud.AuthorizationListSetupBatch();
Id authListSetupBatchJobId = Database.executeBatch(authListSetupBatch, 100);
We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.