0

We want to provide user a feature to download case relared data. Is there a way we can achieve it asynchronously. Issues we are facing in synchronous way are:

  1. Data is too large, so we are getting heap size error.

  2. It is taking too long time, so we want it asynchronously.

Appreciate your help.

Regards ​Ankur

2
  • 4
    How big is this file you're trying to process?
    – sfdcfox
    Commented Oct 9, 2016 at 17:16
  • @sfdcfox I am trying to download a file approx 50MB, and can't make any use of reports too, as I will be having filters in the query optionally, and reports don't support optional filters. Commented Feb 11, 2020 at 8:23

1 Answer 1

0

Yes you can do so. I recommend storing the file somewhere and give user a download link through streaming API (execution context will be different).

That makes sense in case where file size is between 6 and 12 Mb.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .