Generating a Project Document from Relied-Upon Documents
A common requirement is to produce a generated project document — a certificate, an approval letter, a report — that lists the received documents the approver is relying on, along with each document's purpose. This guide walks through the full setup: a document set, a per-document field, a project type, the project itself, and finally the template that merges it all together.
The end result is a Word-compatible document where a table has one row per relied-upon document, filled in from project data.
Before you start
You'll need approver or co-approver access to the project and a rough idea of the documents you expect to receive. Editing templates, running AI extraction and classification, and generating project documents are all approver/coapprover-only operations. The example below uses the names Relied Upon Documents (the document set) and Purpose (the per-document field) — substitute your own names if you prefer.
1. Create the document set
-
Go to Project Creation Setup → Document Sets.
-
Click + Add.
-
Name it Relied Upon Documents.
-
(Optional) Write an AI Prompt that describes which received documents should be added to the set. For example:
Select documents that the applicant explicitly cites in their declaration or supporting statement as relied upon. Do not include documents that are only referenced incidentally or in the applicant's own covering letter.
Leave the prompt blank if you'd rather assign documents manually on each project.
-
Wait for the "Saved" toast.
See Setting up Document Sets for more on writing prompts and when to use them.
2. Create the per-document field
-
Go to Project Creation Setup → Project Information Fields.
-
Click + Add.
-
Name it Purpose.
-
Set the Document Set binding to Relied Upon Documents — this is the step that makes the field per-document rather than project-level.
-
(Optional) Add an extraction prompt describing how AI should propose a purpose for each document, for example:
Summarise in one sentence why the applicant relies on this document. Focus on the document's stated purpose or role in the application.
-
Wait for the "Saved" toast.
3. Add both to a project type
- Go to Project Creation Setup → Project Types.
- Pick the project type you use (or create a new one — see Configuring a Project Type).
- Tick Relied Upon Documents under Document Sets.
- Tick Purpose under Project Information Fields.
Both are now part of the project type's snapshot and will appear on any project created from it.
4. Create a project and populate the set
- Start a new project and choose Choose a Project Type as the creation method.
- Pick the project type from step 3.
- Proceed through the wizard. The applicant (or you, as the approver) uploads received documents.
- Open the project's Relied Upon Documents set.
Populate it:
- If you wrote a prompt in step 1, classification runs automatically in the background as part of project creation — the results will appear once the job completes. You can also click Classify to re-run it after new documents arrive.
- Otherwise, assign documents to the set manually.
5. Fill in Purpose for each document
On the project's Relied Upon Documents page, every document in the set now has its own Purpose field. Fill it in for each document — or, if you wrote an extraction prompt in step 2, accept the AI's proposals as they come in.
You can mix both: accept proposals for the documents the AI got right and edit the rest by hand.
6. Build the document template
Now create the template that will consume the set.
-
Go to Document Templates (
/document-templates). -
Create a new template and open the editor.
-
Write the letter or certificate the way you normally would.
-
Where you want the list of relied-upon documents, insert a table. A three-column table works well:
Document Purpose Received -
Click into the leftmost body cell (the
Documentcolumn). At the very beginning of the cell, insert a merge field namedTableStart:DocumentSet_ReliedUponDocuments. Then — still in the same cell, after the TableStart — insert the per-row merge fielddocument_name.ApprovIQ strips spaces from the document-set name when it builds the group name, so Relied Upon Documents becomes
DocumentSet_ReliedUponDocuments. If your set has a different name, apply the same rule. -
In the middle body cell (the
Purposecolumn), insert the merge fieldPurpose. This is the project information field you created in step 2; it becomes available as a per-row merge field because it's linked to this document set. -
Click into the rightmost body cell (the
Receivedcolumn). Insert the per-row merge fielduploaded_at, then at the very end of the cell — afteruploaded_at— insert a merge field namedTableEnd:DocumentSet_ReliedUponDocuments.The placement of
TableStartandTableEndmatters: Word treats everything from the start of the leftmost cell to the end of the rightmost cell as the repeating region, so each one must sit at the outer boundary of its cell. See Syncfusion's Mail merge for a group reference for the underlying mechanism. -
Wait for the "Saved" indicator.
At least one project information field must be linked to the document set for the DocumentSet_<SetName> group to appear in the template data. If you skip step 2, TableStart:DocumentSet_ReliedUponDocuments won't find a group to repeat over and the row will come out empty. See Document Templates.
7. Generate the project document
From the project's Documents or Document Templates area, generate a document from your template. ApprovIQ:
- Reads the project's approval list, documents, comments, and document-set membership.
- Builds the template data including
DocumentSet_ReliedUponDocuments— one entry per document in the set. - Expands the template, repeating the body row once per document and filling in
document_name,Purpose, anduploaded_atfrom that document's data.
The generated document shows a table with one row per relied-upon document, each with the purpose you captured in step 5.
Extending the pattern
The same pattern works for any received-document list you need to produce:
- Structural certificates: a document set + a Standard field per document.
- Fire safety reports: a document set + a System field per document.
- Consultant reports: a document set + an Author field and a Discipline field.
Add as many fields to a document set as you like; each becomes an available column inside the set's repeating block. See the full list of per-row fields in Document Templates.