Published November 2023
Microsoft 365 offers several options for document generation from centralising your company templates (no more running scripts to push out updates) to populating existing templates. In this blog, we walk you through the options, what they are, when they’re the best option and some pros/cons of each.
What is it?
A library of templates accessible to all employees, shown in the ‘new’ section Office applications (Word/PowerPoint/Excel), under the company tab. In the example below, the Engage Squared tab is displaying all Word templates in the organisational asset library for Engage Squared.
When to use it?
When you just need everyone to use the company-branded template. Too often we hear of people needing to navigate, search, or ask someone “hey I just need to get our template for PowerPoint presentations, do you know where the latest version is?” when it should be much easier.
This is a great solution to ensure everyone has easy access to Office templates and can quickly find and use the current templates. The asset library becomes a central template repository, ensuring that any changes are pushed out to everyone just by uploading / editing a document.
Pros
Cons
What is it?
When to use it?
When you want to insert the same piece of information (such as a publish date) in multiple places in the same document. This method gives you the option to select once and populate in multiple places with one click!
Pros
Cons
What is it?
Using the document properties content controls, data is inserted into the document via SharePoint metadata or the document properties panel in Word. The document properties can be updated either from the desktop application or by updating the properties in SharePoint.
When to use it?
When you want to use a standard Microsoft 365 licence and out-of-the-box features without any additional investment. This is also a great solution when there isn’t a form to be completed so the document can be updated directly.
An example when this was used was for recruitment in a company which preferred to work in the windows explorer view. There was an external form which applicants completed and attached documentation (such as resume or police check).
When the form was submitted a flow was triggered to create a document in a SharePoint document library and use the data provided on the form to set document properties. When a member of the HR team accessed the document in explorer, the details from the application form (applicant’s name, address and role they are applying for) was set out neatly in a document for their review.
Should the HR team member navigate to the library, they would have also been able to filter the applications by job role as this was a property of the library.
Pros
Cons
What is it?
Power Automate is a tool which can connect to multiple sources (such as SharePoint, Salesforce, Dynamics or even Twitter), which can be used in the creation of flows.
Each flow has two key components:
It’s important to note that Power Automate will support quite a few of the options outlined in this article for document generation. This entry is on the populate a Word Template action which is part of the premium offering.
When to use it?
When information needs to be pushed into a document, particularly as part of a flow or if the resulting document needs to be a PDF (for example, a contract document). In the case of the contract generation, the details of the contract are entered into a Power App which is then routed for approval. Once it is approved, Power Automate populates a contract document template with the provided information (customer name, contract start and end dates) and converts it to PDF.
As a last step, Power Automate routes the document for signing using actions from an electronic signature platform (like Adobe Sign or DocuSign).
Pros
Cons
What is it?
Syntex is a new offering from Microsoft which can be used to create modern templates with placeholders for text in a document. These placeholders are populated by you entering data in a small form (shown on the right below), which can connect to a list or metadata term set.
In the example below, the contractor name and address are populated from a SharePoint list. Once the contractor name is selected, the address is automatically populated and set. The modern template can then be automatically populated by Power Automate in a flow using the new Generate document using Syntex which is currently in preview.
When to use it?
This is an excellent tool to use when you need the flexibility for employees to select data directly in a document, or where automatically generating a document would be beneficial.
For example, generating a SOW or a contract with a customer, where there may be a process for a new customer to be set up or you may want to send something out to an existing customer.
For the new customer, the Power Automate flow is a great tool to get the new customer set up (you may want a Team created for the customer or you may want them set up in Dynamics).
The manual pathway is great when you want to send something out to an existing customer – where in the past you may have completed a SharePoint form or had to trigger a workflow, this way the document can be created without needing the flow to run.
Pros
Cons
What is it?
Encodian is a third party product which integrates with Power Automate and has an action allowance included with each subscription level, which includes a free tier that includes up to 50 actions per month. It uses tokens in a document (such as <<Title>>) which are populated by a JSON passed through to the action in Flow.\
Shown below are a selection of the actions available with Encodian.
When to use it?
It’s great to use when not many flows need to generate documents without the additional financial investment, or to utilise other tools in the Encodian platform (such as add attachment to PDF or add a watermark to Word or PDF).
Pros
Cons
What is it?
Plumsail is a third party product which integrates with Power Automate and has a document generation allowance included with each subscription level. The lowest tier, Folder, will support generation of 200 documents monthly which at the time of writing is $25/month. If more documents are needed you may need to move to a higher tier such as Drawer which will allow 1000 documents a month ($84/month at time of writing). Additional document generations can be purchased as needed in batches of 100 generations. The Plumsail pack is a set of actions available in Power Automate, which can be added into any flow once a subscription has been set up.
Similar to other options, Plumsail uses typeable placeholders (e.g. {{Title}}) to indicate where data will be inserted. In the flow, JSON is passed to the action which includes all the data to be inserted into the document.
Document templates use content controls with names to indicate where data is inserted and what it should be named in the JSON.
When to use it?
It’s a great solution if there are other actions in the offering which can add value, such as add watermark to PDF or Split PDF.
Pros
Cons
What is it?
Muhimbi is a third party product which integrates with Power Automate and does not generate documents, but can:
There are some different subscription plans for this product which includes a free tier, which supports most actions but does not support extraction of data from a PDF document.
When to use it?
This is a great one to use when you need to work with PDF documents using Power Automate, such as merging or splitting document or you need to extract text from a completed PDF form.
Pros
Cons
What is it?
Nintex is a third party cloud product which includes document generation allowance in the subscription. It uses a set template and the ‘Nintex tagger’ (shown below) which generates tags to paste into your template (e.g. <<Title>>). The tagger is easy to use and the tags can be copied or typed as needed.
When to use it?
Pros
Cons
What is it?
These are solutions other developers have created and shared via a platform like GitHub for the use and enjoyment of anyone else facing the same issue. Usually, they use out of the box actions functionality or some custom dev which is also provided to you. For example, there is a great PowerApps one floating around which generates the HTML you need to include the Fabric UI icons in your Power App – great way to customise your Power App with no extra cost.
They are usually free of charge and provided ‘as-is’ without support.
When to use it?
There are some great solutions out there which can save work and frustration in the long run. If you find one that works, use it!
Pros
Cons
There is no support for these solutions if there is an issue which may lead to more work in trying to get it working vs. building your own solution
What is it?
Using standard actions in Power Automate, you can generate a HTML document and convert it to PDF. The Flow uses a complicated series of find and replace actions to update placeholders in templates with actual values provided from a data source (for example, a SharePoint list, a PowerApp or any other data source).
When to use it?
This option should be used when no additional licenses or products can be purchased.
Pros
Cons
What is it?
Model-driven PowerApps can be set up to invoke flows as part of the process flow, this can leverage the populate a Word template flow action to generate a document from the data in the model driven app.
When to use it?
If you already have a model driven app or dynamics instance which is producing the data and you need it in a document – perfect!
Pros
Cons
What is it?
A template which is created inside a model-driven app which can then be populated with values from the app as needed (without the need for an additional flow). An example template is shown below.
When to use it?
When you have a model-driven app already in place and want to generate documents based on the data without any data manipulation (no Flows are required to create the data).
Pros
Cons
There’s a lot to remember when it comes to document generation, which is why we’ve created this quick cheat-sheet for you to download. It summaries everything we’ve covered today with the pros and cons clearly listed so you can make the right choice for you. Download it here.
Still not sure which one to use? Seen something that looks great, but no idea where to start? Let’s chat to help you find the best solution for you.
Get in touchKatherine Collins is a certified business applications consultant at Engage Squared, who is new to the company but has spent the last few years working closely with companies in a few different industries (FMCG, non-for-profit and consulting) to help them get the most out of SharePoint and the Power Platform. Katherine loves helping to streamline the internal work processes and make people’s jobs easier. Katherine is based in Melbourne with her Samoyed and on the weekend you can find them both in the garden (Katherine working and her dog supervising).