Bulk document generation

Following on from last week’s new feature – generating PDF documents with the click of a button, this week’s update removes the need for the button click, generating documents automatically based on criteria you specify.

For example, if your system tracks exam marks, you may wish to automatically generate a certificate whenever someone passes. Another more common example might be generating invoices for all work carried out this month.

Setting up

The concept works much like email notifications or syncing events to Google calendar. A view must be set up that contains the records that you want to generate documents for.

  1. The first step is to set up and upload a template as per ‘generating PDF documents
  2. Add a date field to the table that contains the document file field, for the system to record the time each document was generated. For the purposes of these instructions, we’ll assume it’s called ‘document generation time’
  3. Create a new view to contain only records that need documents generating, e.g. with a filter added to remove any records that already have a document
  4. In the manage tab for the view, click the ‘sync’ button and scroll down to ‘automatic document generation’. Select the date field that you created in step 2 above, i.e. ‘document generation time’

That’s it. Now whenever a record appears in the view, a document will be generated. Note this generation may take up to 10 minutes from the time the record appears in the view to allow for the fact if a record’s being edited, we want to make sure all information has been captured that may go into the document template.

sync

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s