Search and Generate Report searches for Records and saves the results as a report in a Record. The report is the same one Generate Report makes on the search results screen: an Excel workbook or a PDF with the search's columns and, when you set one up, a chart. Use it to file a report on a schedule, or to build one in a workflow and send it on with a Send Email action.


Search and Generate Report needs DocMgt Enterprise Edition.


The action's settings are organized into tabs.


Search

Copy from My Alert fills in the action from one of your own alerts. Click Load My Alerts, pick the alert and click Copy. The alert's Record Type, search values, sort, chart and report settings replace the action's. A few search options have no place in a workflow search, such as Created Date, Changed Date and text searches; when the alert used any of them, the action lists what it did not copy so you can add it another way.


The rest of the tab and the Advanced Search tab work the same way as in the other Search actions, such as Search and Create CSV: pick the Record Type in Search In, fill in the values to search By Values, set the Sort by field and choose whether the search skips security. Search values can hold variables from the Record that runs the action.


Max Records on the Advanced Search tab limits the report to the first that many Records in the sort order. The chart still covers every Record the search found.


Chart

The Chart tab has the same settings as the chart on the search screen: Chart By (X-Axis), Amount Field (Y-Axis), Group By (optional), Group dates by and Chart Type, plus a Chart Title. See Charting Search Results for what each one does. Leave Chart By (X-Axis) on No Chart for a report without a chart.


Report

Format is Excel or PDF.


Include chooses Chart and Data, Chart Only or Data Only.


Report Title is the large heading at the top of the report. Leave it empty to use the Record Type name.


Report Subtitle is the smaller line under the title. Leave it empty for a line that says when the report ran and how many Records it holds, for example "Run on 11/11/2026 - 42 Records".


Both can hold variables. [SearchReportCount] gives the number of Records in the report, for example "Open invoices: [SearchReportCount]".


Totals adds a row under the number columns that adds up each one. Percentage columns are not totaled.


Numbers and Dates is the language the report writes numbers and dates for, such as en-US. It starts as your own browser's language; the Use button next to it (for example Use en-US) sets it back to yours. Dates and times are shown in the Server Time Zone.


Report Document

Each time the action runs it adds a new document to the Record that runs the action.


Record ID saves the report to another Record instead. Give that Record's ID, or a variable that holds it.


Save Report To sets the new document's Category, Sub Category and Name, and its File Name. Leave File Name empty to name the file after the document. Each box can hold variables, for example a date in the name.


What the report contains

The report shows the same columns as the search results screen for that Record Type, in the same order, with the Records in the order of the action's sort. Numbers and dates are real numbers and dates, so an Excel report can sort and add them up. For the details, see Generating a Report from Search Results.


Limits

  • A PDF report holds up to 2,000 Records and an Excel report up to 50,000.
  • When the search finds more, the report holds the chart only when the action has a chart; otherwise no report is saved. The Workflow Log says which happened. Max Records keeps a large search under the limit.
  • Chart Only has no limit, because it does not list the Records.
  • When the search finds no Records, an empty report is still saved, except with Chart Only, where there is no chart to save.


Good to know

  • After the action runs, [SearchReportCount] holds the number of Records in the report, for the actions that follow. For example, a Send Email action that attaches the report can skip the email when it is 0.
  • The action can be used in a workflow, an Action Set, an Add-In or a scheduled automation.