Use Power Automate

You can use Plumsail Documents connector in Power Automate (formerly Microsoft Flow) for two scenarios:

Start a process and generate documents from a template

Processes are an easy way to automate the creation of documents from templates. You just configure template, test it and specify how to deliver results (email, OneDrive, etc.).

You can use Plumsail Documents connector for Power Automate (Microsoft Flow) to start a process. Start by creating an API key. You will need it in your Flow.

Then add the Start document generation process action to your Flow. You will be asked for a Connection Name and an Api Key. You can type any name for the connection. For example, Plumsail Documents. Then paste the API key that you created earlier to the API Key field.

Create flow connection

The action automatically adds inputs to the Power Automate interface for entering values based on your template tokens from the process.

For example. if we have these tokens inside a DOCX template.

Start process template

The action automatically adds fields to the Power Automate interface. An example of the flow is shown below. As you can see, these four content fields inside the action window represent four tokens from the above template.

Optionally, once the action is executed, you can retrieve the resulting document as an output of the action and continue working with it in your Flow. In this case, the resulting file is saved to a SharePoint folder. Alternatively, you can choose any other connector to save the file or send it via email.

Start process flow example

The above example of flow has a manual trigger for simplicity, but you can trigger your flow on various events. For example, for a selected item in the SharePoint list, or When a new item is created in the SharePoint list, or various Web forms submissions - actually, there are too many cases to list them. Use different triggers to populate document templates with data from your web-services.

Note

This action may not support a complex nested structure of the template tokens. If the Power Automate interface lacks certain inputs, it indicates that the action doesn’t support this kind of nested token structure. In such cases, switch to the Start document generation process with JSON action.

Please, find out examples of Power Automate Flows with processes:

Trigger flow when a process finished

Sometimes you need to do some actions when a process of document generation is finished.

You can use “Process finished trigger”. The trigger returns an URL of the generated document. You can use the output from the ‘Process finished’ trigger further in the Flow or you can download the content of the generated document by URL using an HTTP action — GET method.

Triggers when a process is finished

Advanced document processing

Sometimes, you don’t want to use Processes to generate documents or documents are already generated by a third-party system.

In this case, use the rich set of Power Automate actions from Plumsail Documents connector.

For example, you can: