function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
ckellieckellie 

Scheduled Apex Jobs

I am studying Quinton Wall's post "Using Scheduled Apex jobs to retrieve stock quotes"  but am having trouble replicating the example. Quinton uses three different code snippets, but I am not sure how theey relate to each other. Are all three snippets suppose to be one class, or three separate classes? How dooes the code correlate? This is my first project in scheduing apex.

 

Thanks,

Best Answer chosen by Admin (Salesforce Developers) 
sbbsbb

They are three separate class files.

 

Class 'StockPriceJobScheduler' invokes 'getStockPrice' which in turn calls the 'getQuotes()' method in 'CallYahooQuotes' class.