Installation Guide > Installation Guide > Pricebook Configuration > Pricebook Entry Sync: Scheduled
Was this helpful?
Pricebook Entry Sync: Scheduled
The Pricebook Entry Sync can be scheduled by running a script (modified where needed) in the debug console.
The Scheduled Script
NSCRM.PricebookEntrySync p = new
NSCRM.PricebookEntrySync();
String sch = '0 30 0/1 * * ?';
system.schedule('<Title of scheduled job here>', sch, p);
The above scheduled script will run the PricebookEntrySync every hour, every day, on the 30-minute mark (12:30, 1:30, 2:30, etc.).
When the job executes, it will grab the last time the PricebookEntrySync job ran, regardless of whether it was On-Demand or Scheduled, and only process the Pricebook Entries that were modified afterward.
Existing Scheduled Jobs can be viewed by going to: Setup > Monitor > Jobs > Scheduled Jobs in Salesforce.
Last modified date: 12/14/2021