Bulk Processing of Documents

  • 17 November 2022
  • 0 replies


We have a use case where we need to print guests that a related to a particular event. An event might have several thousand guests. We experience lock ups on large guests lists, particularly if they contain images. 

It seems like what we need is an Apex Data relationship that can call the package and provide it a certain number of records based on a SOQL offset. For example if we had 5000 guests. We would chunk it into 5 jobs.

But there does not seem to be a way in the docs to do this dynamically. I would love to take total number or rows and divide by 1000. Then just loop over that count and create n number of new jobs and pass in the offset for each one. 

Does anyone know how we might achieve this. Otherwise it seems like our only option is just to create multiple packages with their own offset value and run it that way. 

0 replies

Be the first to reply!