I have a requirement that involves Printing a "document(s)" and then updating it to mark it as printed (custom "isPrinted" field).
I am really struggling to find the best way to do this. I've thought of a of different ways but they all seem to fall down at one stage or another:
- Exporting from Salesforce as a report/dataloader and loading into a Mail Merge before then using another update to update the system of the printed records
- 2 visualforce pages, 1 as a Mass Update and 1 to render all records to be printed as a PDF
The issue with these is the printing and updating are seperate process and as we are dealing with hundreds/thousands of records/print outs I need it to be seamless. At the moment I am picturing one PDF but I also see the benefit of simply producing a PDF for each record that is to be printed/updated.
Has anyone else been required to do this, how did you achieve it?