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
TechBlossomTechBlossom 

passing input parameters in a http class request object

Hi All,

 

I am making an apex callout to an external webservice, and rendering the xml page. This works fine for small amount of data, but for data running into 200,000 records, the fetching of data has to be broken down into multiple sessions, since there is a heap size limitation. For this I should pass some input parameters in the http request object, say fetch the first 1000 records in the xml file or some kind of logic, which can keep checking for the maximum heap size and stop fetching the records once the llimit is reached. Then go back, make a new http call out to the same page, start where it left off and bring in the rest of the records. Also there is a limitation on the number of callouts in a single apex transaction. So I should also include batch apex programming for this I guess. 

To start off with all this, I should be able to pass certain parameters in the http request object - limit on the number of records that has to be fetched from the xml page, and I should pass some kind fo input, say the userid as input, so that only that respective xml page is pulled up( In this case, the particular user's accounts page comes up).

Any kind of help is greatly appreciated.

 

Thanks,