Create a document when a list item is created using Microsoft SyntexCreate a document when a list item is created using Microsoft Syntex

Today I had a look into how to generate documents from lists items using Microsoft Syntex with Power Automate. In this post all the steps.

Setup Microsoft Syntex billing

Before you can get started with Syntex, the billing will have to be setup.

Microsoft Syntex requires you to use an Azure Pay As You Go subscription. This is probably one of the main factors that will hold people back from using this great solution. But once your administrator has put this in place you are ready to go.

As a global administrator, you will have to go to the Admin Center and then in Setup find the Files and content section. Then click on the Use content AI with Microsoft Syntex.

Microsoft 365 Admin Center
Microsoft 365 Admin Center

All you need to do is setup billing.

Use Content AI with Syntex
Use Content AI with Syntex

All you will need to supply is the subscription, a resource group ( you will need to create this within your Azure Portal) and supply the region that you want to run Syntex in.

Pay as you go billing
Pay as you go billing

Then you will have to wait a while, before Syntex is fully setup.

If anything goes wrong then you might bump into this issue:

Generate Documents using Microsoft Syntex in SharePoint using Power Automate Microsoft Power Automate, Microsoft Office 365, Microsoft SharePoint Online, Microsoft Syntex something went wrong

The Something went wrong. Please try again later. message is very little help.

If you do get the above message then simply hit the save button again and you will find that the red error will turn into a green success message. So there might simply be some issues with the setup process timing out.

Microsoft Syntex billing was setup successfully
Microsoft Syntex billing was setup successfully

Setup Microsoft Syntex

Now that the billing has been sorted out, we’re going to go back to the Admin Center Setup to configure Microsoft Syntex. Note that not all these options need to be configured to get to my end goal of running my flow to generate a document. However, I didn’t want to skip the Syntex options in this post either.

Setup Microsoft Syntex
Setup Microsoft Syntex

By clicking on the Manage Microsoft Syntex. We can now configure the following options

  • Content center
  • Prebuilt document processing
  • Unstructured document processing
  • Optical character recognition
  • Image tagging
  • Content assembly
Microsoft Syntex services
Microsoft Syntex services

Create a Content Center

I’m going to start with the creation of the Content Center

Content center
Content center

Nothing exciting here. It is just creating another SharePoint site ;like you would do in the SharePoint Admin Center.

Create content center
Create content center

Once your site is created the site should look like this:

Get started with document processing
Get started with document processing

Configure Prebuilt document processing

The next part of our Syntex journey is to configure prebuilt document processing.

Prebuilt document processing
Prebuilt document processing

Syntex currently supports the following prebuild document models:

  • Contracts
  • Invoices
  • Receipts

In my case I only want these processing models to appear with a demo site that I have created. But if you want these mdoels to appear in many site you might want to use the csv import option that is available.

Which SharePoint libraries should show the option to use Prebuild document processing models.
Which SharePoint libraries should show the option to use Prebuild document processing models.

In a similar way you can also make the following available for selected SharePoint sites.

  • Unstructured document processing
  • Optical Character recognition
  • Image Tagging
  • Content Assembly

Configure a SharePoint Site for prebuilt processing templates

Classify and extract
Classify and extract

Within the Classify and extract option in your document library, you can create the models on the library.

Review models and apply new ones
Review models and apply new ones

The first time you create a model, you will ned to activate document classification

Activate document classification and extraction on this site
Activate document classification and extraction on this site

Now depending on the configuration that you went through earlier, you will see some or model option.

Options for model creation
Options for model creation

In this case I’m going to create invoice processing

Invoice processing Details
Invoice processing Details

Simply click on next and then supply the Model name and description

Create an invoice processing model
Create an invoice processing model

Then click on create, which will get you to a file upload page

file upload page
file upload page

Now you can add a few invoice examples. It will be important to get a decent set of examples, to make sure that you get the model trained/tested with the right data.

Files to analyze with the model
Files to analyze with the model

Now depending on the quality of your invoices uploaded, you will get a good or a bad result.

Invoice extractors
Invoice extractors

Each element found on your invoices will need to be confirmed.

Create a Document Library and a SharePoint list

That is enough for now about enabling Syntex. I’m going back to my aim of creating a flow to generate a document from the creation of a list item.

Once I configured Syntex I’ve been given an additional option. Create Modern Template.

Syntex demo site with Create modern template option
Syntex demo site with Create modern template option

The Create modern template option will get me to select my template document. I’m going to pick th Invoice template that I prepared before.

Create document with modern template
Create document with modern template

Using the Edit New menu in my Document Library I will be adding a new document template.

Use as content field
Use as content field

As shown above we can have text fields, but it is also possible to create data fields, or number fields or a few other types of fields.

New field
New field

And as you go through the fields you can specify the type of the fields.

How authors fill in this field
How authors fill in this field

Once you have completed the fields, make sure that you publish the template. If you decide to save the template and want to publish the template later, then please use the Edit new menu, where you can find the draft templates back.

Configuring flows to create documents

I’ve started by creating a SharePoint list and I will be using this list to generate invoices and every time I create a new item in the list.

I want a document to be generated using Power Automate. Just to make sure that my Invoice template has been published I check the New menu in my library.

Syntex demo site with Invoice template
Syntex demo site with Invoice template

Creating a flow to use a modern template

Now the easy part. I’ve got my site, document library and list. All I now need to do to generate a document is to create a two step flow.

Create a document when a list item is created using Microsoft Syntex
Create a document when a list item is created using Microsoft Syntex

And my document is created as soon as I create an item in my list.

A flow created a Syntex document
A flow created a Syntex document
Avatar for Pieter Veenstra

By Pieter Veenstra

Business Applications Microsoft MVP working as the Head of Power Platform at Vantage 365. You can contact me using contact@sharepains.com

4 thoughts on “Generate Documents using Microsoft Syntex in SharePoint using Power Automate”
  1. Hi Pieter, interesting use case and even more informational insight in setting this up practically. Quick question, could you use syntex also to convert documents? I was thinking of a use case for converting resumes based on existing resumes (no structured data, all content is accumulated in the Word file) into a new house style Word format. Love to hear your thoughts on that. BTW keep up the great work! Love the to point practical articles!

    1. Hi Lennard,

      That should be possible. I could imagine converting Quotes into Purchase Orders or Purchase Orders into Invoices could be an option. Resumes may be slightly tougher as every resume is likely to be formatted very differently, but it is definitely worth an experiment.

  2. It’s great to see the detailed guide on using Microsoft Syntex and Power Automate to generate documents in SharePoint. This can streamline document creation and management processes for many organizations. Can you provide an example of a specific use case or scenario where this combination of Microsoft Syntex and Power Automate would be particularly beneficial?

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Discover more from SharePains by Microsoft MVP Pieter Veenstra

Subscribe now to keep reading and get access to the full archive.

Continue reading