Help Center Batch Processing Run a Batch Job from a Report

Run a Batch Document Job from a Salesforce Report with Dochly

Updated June 2026 7 min read Batch Processing
Running a batch document job in Dochly takes under five minutes to configure and launches with a single click. This guide walks through every step: naming the job, selecting the source report, choosing the template, configuring per-job overrides, reviewing the confirmation summary, and monitoring progress once the job is running.

Before you run

Confirm these are ready before creating a batch job:

Batch processing configured

Output settings, storage, delivery, and notification defaults must be configured in Dochly → Batch Jobs → Settings. If not done yet, see Set up batch document processing first.

Source report verified

Run the Salesforce report and confirm the row count is exactly the intended record set. Every row becomes one generation — unexpected records in the report means unexpected documents sent to customers.

Template tested

The template to be used has been previewed against a representative record from the report. All merge fields resolve correctly, conditional logic works as expected, and the output looks correct.

Permission confirmed

You have the Dochly Admin or Dochly User permission set assigned. Admins can create and configure jobs; Users can run pre-configured jobs. Verify in Setup → Users → Permission Set Assignments.


Report requirements

  • Tabular or Summary report type — Matrix reports are not supported. Tabular is the simplest and most reliable format for batch source reports.
  • Record ID column included — Dochly uses the ID column to identify which Salesforce record each row maps to. Without it, Dochly cannot match rows to records.
  • Report type matches template object — an Opportunity template must run against an Opportunities report. Mismatched object types produce generation errors for every record.
  • Saved in a shared or public folder — reports in personal folders are only accessible to the owner. Save it in a shared folder so Dochly can read it at job run time.
  • Relative date filters where applicable — "This Month" beats "June 2026" for recurring jobs. Relative filters stay relevant on every re-run; static dates go stale.

Step-by-step: creating and running a batch job

1

Open New Batch Job

Navigate to the Dochly app → Batch Jobs tab → click New Batch Job. The job configuration panel opens. All fields in the panel are for this specific job run — they override the org-level defaults without changing those defaults for other jobs.

2

Name the job

Give the job a clear, descriptive name that identifies what it generates and when. Good naming makes the job history log easy to read.

  • June 2026 Invoice Run — Closed Won
  • Q3 Renewal Agreements — 90-Day Pipeline
  • Annual Compliance Docs — All Active Accounts
3

Select the source report

In the Source section, select Salesforce Report as the source type. Search for and select the report. Dochly validates it immediately — showing row count, confirming the ID column, and checking the report type. If validation fails, the error message explains exactly what to fix.

4

Select the template

In the Template section, select the Active Dochly template for this job. Only Active templates are shown — Draft or Inactive templates are not available for batch jobs.

New Batch Job — configuration panel
Job name Required
June 2026 Invoice Run — Closed Won
Source report Required
Closed Won — This Month (147 records)
Template Required
Standard Invoice — Active
Output format Optional
PDF (default)
Email delivery Optional
Send to Contact.Email — "Your invoice is attached"
5

Configure per-job options

Override any org-level defaults for this specific job if needed:

Output format override

Change the format from the default for this job only — e.g. generate DOCX for an internal review batch while the org default is PDF.

Email delivery override

Enable or disable email delivery for this job specifically — useful for testing (disable delivery) or for one-off jobs that should email when the default does not.

Concurrency override

Lower concurrency for very large jobs to avoid API rate limit errors. Higher concurrency for small urgent jobs where speed matters.

File name override

Use a different naming convention for this batch — e.g. include a batch-specific reference number or date prefix that differs from the standard template naming.

6

Review the confirmation summary and launch

Before launching, Dochly shows a confirmation summary:

Job confirmation summary
Records to process:147 records from "Closed Won — This Month"
Template:Standard Invoice (Active)
Output format:PDF
Storage:Attach to originating Opportunity record
Email delivery:Send to Contact.Email
Estimated time:~8 minutes

Review the record count carefully before launching. Once started, emails go out to real recipients immediately and cannot be recalled. If the count is unexpected, cancel and re-check the report filters.

Click Launch Job. The job starts immediately and runs in the background. You can close the panel and continue working.


While the job runs

After launching, the job appears in Dochly → Batch Jobs → Active Jobs with a live progress indicator showing total records, processed so far, success count, failure count, and estimated time remaining. The job runs in the background regardless of whether you have the browser open.

Progress tracking

The Active Jobs panel updates every 30 seconds. See Monitor and track batch jobs for full monitoring detail including failure log access and per-record status.

Cancelling a running job

Dochly → Batch Jobs → Active Jobs → [Job Name] → Cancel. Records already processed keep their documents. Unprocessed records are skipped. Cancellation takes 1–2 minutes to propagate.


After the job completes

When all records are processed, the job moves to Job History with a completion status. Check the job summary for success count and failure details, and spot-check 3–5 records in Salesforce to confirm generated documents appear in Files with correct names and content.


Re-running a job

Dochly → Batch Jobs → Job History → [Job Name] → Run Again. Creates a new job instance with the same configuration — review and modify settings before launching. If you used a prevention field pattern, re-runs automatically skip already-processed records via the report filter.

For regular recurring jobs, use scheduled batch runs instead of manually re-running each time. Scheduled jobs trigger automatically at your configured interval.


Frequently asked questions

Dochly batch jobs can be cancelled but not paused and resumed. If you cancel a running job, records already processed retain their generated documents. To process the remaining records, run a new job — if you are using a prevention field, only unprocessed records will be included in the re-run automatically.
Dochly reads the report at the moment the job launches — not when you previewed it. If the report uses a relative date filter and records were added or removed between your preview and launch, the count differs. For time-sensitive jobs, launch immediately after verifying the count, or use a fixed date filter.
A single batch job uses one template for all records. For different templates, create separate batch jobs with filtered reports targeting each record subset — for example, an "Enterprise Contracts" job with an Enterprise template, and a "SMB Contracts" job with an SMB template, each pointing to a filtered report by Account Type.

Your batch job is running. Next in this series: Schedule a batch document run in Salesforce with Dochly — automate recurring batch jobs to run on daily, weekly, or monthly schedules without manual intervention.

Dochly
Salesforce AppExchange — UTECH HUB Install Dochly on AppExchange

Rated 5 stars · Native Salesforce app · Free to install