Will Cooper
Will Cooper
August 21, 2024

You can print a SharePoint item together with all of its related child records as a single PDF. The recipe in Ultimate Forms takes two Print List Items actions: the first prints each child record with its own Word template and attaches the resulting PDFs to the parent item, and the second prints the parent and appends those attachments as additional pages of the same file. The result is one document, a timesheet with all its entries, an invoice with all its line items, formatted with the precision of Word print templates, and generated automatically by whatever trigger you choose.

One process, one PDF. Here is the whole setup, screenshot by screenshot.

The problem: relational data, but the PDF comes out in pieces

Out-of-the-box SharePoint has no print functionality at all, which is why the Print component exists in the first place. Word print templates solve the formatting side elegantly: you design the document in Word, drop in field placeholders, and get polished PDF output from any form. (If you have not built one yet, start with the walkthrough in our documentation and the layout techniques in Word Print Template Table Layouts.)

The complication arrives with related records. Any solution built on the Associated Items pattern has a parent and its children: a timesheet with its daily entries, like this one:

Timesheet form

Here there are two print templates in play, one for the parent record and one for the child records, because the two record types carry different fields and deserve different layouts. Each prints beautifully on its own. But printing them individually yields a folder of separate PDFs, one for the parent and one per child, and nobody wants to email a timesheet as nine attachments. What the process actually needs, for approval, for the customer, for the audit file, is everything in one document.

That is exactly what the Attach to current item capability of the print action delivers, and the entire consolidation takes two actions.

Action 1: Print the children onto the parent

With both Word templates ready, add the first Print List Items action on the parent list. This action creates a PDF of each child record and attaches those PDFs to the parent record:

Print action

The settings shown do five things: select the child list; target the child records using the special "Parent field name" reference, so only the children belonging to this parent are printed; select the child print template; specify PDF output; and set the target to the special "Attachment" option, attaching the output to the parent record with the overwrite option enabled. Overwrite matters more than it looks: when the action runs again after a child record changes, the fresh PDFs replace the stale ones instead of piling up alongside them.

Trigger the action with whichever conditions fit the process, when a Status field changes to complete, say, or as a manually triggered action a user fires from the form. Then test this step on its own before building the second one; debugging is far easier one action at a time. If everything works, the attachments appear on the parent record:

Print-outs as attachments

Action 2: Print the parent and pull it all together

On the parent list, add one more Print List Items action. This one prints the parent record itself and consolidates the attached PDFs into the same file:

Print action settings

The configuration: select the current record with the ID = [ID] setting; choose the parent print template; specify PDF output; target a document library of your choice; give the file a dynamic name, including a date stamp such as Month([Now])−Month([Now])- Day([Now])-$Year([Now]) keeps report generations distinct; check the Attach Documents option, which is the setting that does the consolidating; select the library; and enable Allow overwrite.

The output is one PDF whose opening pages come from the parent template, with each attached child PDF appended as additional pages after it. And the destination is flexible: instead of, or in addition to, filing the PDF in a library, the output can be sent via email automatically, which turns the whole construction into a report that delivers itself.

Why the two-action pattern is worth learning

Beyond solving the immediate problem, this recipe demonstrates a composition principle that pays off across the platform: print actions produce documents, and documents can be inputs to other print actions. Once children can be printed onto their parent and a parent can absorb its attachments, variations come cheaply. Chain the pair behind an approval so the consolidated PDF is generated the moment a request is approved. Run them from a scheduled action to produce a dated report pack every Friday. Use print filters to control which children make the cut, only billable entries, only approved lines.

The pattern fits anywhere Associated Items keeps parent and children together: invoices with line items, purchase orders with order lines, inspections with findings, projects with task logs, patient records with visit entries. If the data is relational and the world outside SharePoint expects a single tidy document, this is the bridge. For the broader document-generation picture, see Generate Documents from SharePoint Data Using Word Templates and Effortlessly Convert SharePoint Data to PDF.

Loading...

Add your comment

Comments are not meant for support. If you experiencing an issue, please open a support request.
Build powerful business applications in SharePoint using only your browser.
100% No-Code Solution
It’s never been easier to create, innovate, and share. All you need is your web browser!
Cost-Effective
Address business process pain points immediately. Save time and money.
Fantastic Support Team
In addition to our responsive support team, a wide variety of resources, documentations, tutorials, blogs and webinars is available to you
ULTIMATEforms is a complete platform that enables everyone to easily create and maintain Microsoft SharePoint-based business solutions without a single line of code
Powerful Forms
State-of-the-art responsive forms, complete with tabs, permissions, dynamic rules, repeating sections, electronic signatures and advanced validation, powered by our AI-assisted form generator
Powerful Automation
Replace complex workflows with simple, but powerful actions to create and update data inside SharePoint and in a variety of integrated applications and databases
Powerful Reporting
Transform data into actionable insights with detailed exportable reports, sophisticated dashboards, color-coded calendars and dynamic charts
100’s of Templates
Build and replicate business solutions with ease, selecting from our vast free library and creating your own custom templates, all installed with a single click
Dive deeper
Watch a short introductory video showcasing the different unique capabilities of UltimateForms.
Ready to get started?
Hands-on training is the best way to get proficient. That's why we've created three unique training offerings which will help you master ULTIMATEFORMS. Our interactive sessions are delivered via web meetings and conducted within personal virtual workspaces.
100% No-Code Solution
It’s never been easier to create, innovate, and share. All you need is your web browser!
Cost-Effective
Address business process pain points immediately. Save time and money.
Fantastic Support Team
In addition to our responsive support team, a wide variety of resources, documentations, tutorials, blogs and webinars is available to you
Microsoft partner logo
© 2005-2026 Infowise Solutions Ltd. All rights reserved.
Privacy | Cookie Policy | Accessibility | Cloud SLA