Power Automate actions and triggers

This connector helps you to automatically generate and convert documents with the help of Power Automate (Microsoft Flow). Before starting, ensure that you added Plumsail Documents connector to Power Automate (Microsoft Flow).

Triggers

The connector has only one trigger. Find it below.

Process finished

The Power Automate trigger starts when a process of document generation is finished.

Output Parameters

Parameter

Description

Example

Result file’s URL

URL with the content of the result file generated by a process.

URL to the blob file. https://actions.blob.core.windows.net/data-storage/

Input Parameters

Parameter

Description

Example

Process name

Select the name of your process from the list of available processes.

Generate sales contract from template

Example

Triggers when a process is finished

Actions

Find all available actions below.

Start document generation process

Starts a process of document generation. 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.).

This action automatically adds inputs to the Power Automate interface for entering values based on your template tokens from the process. It may not support deeply nested tokens, and if the Power Automate interface lacks certain inputs, it indicates that the action doesn’t support this kind of nested token structure. In this case, switch to the Start document generation process with JSON action.

Check out the article describing how to use this action.

Output Parameters

Parameter

Description

Example

Result file

The content of the result file generated by a process.

It is the content of the result file.

Input Parameters

Parameter

Description

Example

Process name

Select the name of your process from the list of available processes.

Create employee card

Properties values or JSON content

Data to bind to the template. You can get this data from some other Power Automate (Microsoft Flow) connector. For example you can query SharePoint list or some other system.

You can either enter property values into the automatically generated fields or switch to JSON mode. This is the JSON data example:

[
    {
        "FirstName": "David",
        "LastName": "Navarro",
        "Email": "d.navarro@contoso.com",
        "Photo": "https://picture-public-url"
    }
]

Example

Start process flow example

You can also switch to the JSON mode and enter a JSON.

Start process flow example

Start document generation process with JSON

The action does the same as Start document generation process but it only works with JSON data.

Output Parameters

Parameter

Description

Example

Result file

The content of the result file generated by a process.

It is the content of the result file.

Input Parameters

Parameter

Description

Example

Process name

Select the name of your process from the list of available processes.

Create invoice

Template data

Data to bind to the template in JSON format. You can get this data from some other Power Automate (Microsoft Flow) connector. For example you can query SharePoint list or some other system.

JSON data for generating an invoice:

{
  "companyAddress": "3 Main St.New York NY 97203 USA",
  "companyEmail": "sales@sample.com",
  "companyPhone": "202-555-0131",
  "invoiceNumber": "432",
  "total": "18872.94",
  "items": [
    {
      "name": "Monitor",
      "quantity": "10",
      "cost": "990"
    },
    {
      "name": "Stepler",
      "quantity": "1000",
      "cost": "12440"
    }
  ]
}

Example

Start process with JSON

Create DOCX document from template

Creates Word DOCX document from template. Review Word DOCX templates section for more information about template syntax.

We have an article describing how to work with this action in case of managing documents.

Output Parameters

Parameter

Description

Example

File Content

The content of the result .docx or .pdf file.

It is the content of the result file.

Input Parameters

Parameter

Description

Example

Template file

The raw content of the source .docx template file. You can extract file content from other connectors like:

  • SharePoint

  • Salesforce

  • Box

  • OneDrive

  • Google Drive

  • Dropbox

  • SFTP

  • File System

List of Power Automate (Microsoft Flow) connectors

Review Word DOCX templates section for more information about template syntax.

Example of simple table template:

Simple table template

data

Data to bind to the template in JSON format. You can get this data from some other Power Automate (Microsoft Flow) connector. For example you can query SharePoint list or some other system.

[
    {
        "firstName": "Efren",
        "lastName": "Gaskill",
        "email": "egaskill0@opensource.org",
        "payments": [
            {
                "date": "3/10/2018",
                "amount": "$8.91"
            },
            {
                "date": "1/7/2018",
                "amount": "$0.56"
            }
        ]
    }
]

Document output type

You can select the output type of the resulting file: DOCX or PDF.

DOCX or PDF output.

Locale

An optional parameter that allow to specify the desired regional culture format. You can pick the value from predefined list. If you don’t specify value, default value will be “en-US” (english, USA). All allowable regional culture formats you can find here

Example

Create document from DOCX template Example

Create PPTX document from template

Creates PPTX presentation from template. Review PowerPoint PPTX templates section for more information about template syntax.

Output Parameters

Parameter

Description

Example

File Content

The content of the result .pptx or .pdf file.

It is the content of the result file.

Input Parameters

Parameter

Description

Example

Template file

The raw content of the source .pptx template file. You can extract file content from other connectors like:

  • SharePoint

  • Salesforce

  • Box

  • OneDrive

  • Google Drive

  • Dropbox

  • SFTP

  • File System

List of Power Automate (Microsoft Flow) connectors

Review PowerPoint DOCX templates section for more information about template syntax.

Example of simple slide template:

Simple slide template

Template data

Data to bind to the template in JSON format. You can get this data from some other Power Automate (Microsoft Flow) connector. For example you can query SharePoint list or some other system.

[
    {
        "CompanyName": "Contoso",
        "CompanyEmail": "support@contoso.com",
        "Products": [
            {
                "Name": "Documents",
                "Price": "starting from $29.99/month"
            },
            {
                "Name": "Actions",
                "Price": "starting from $29.99/month"
            }
        ]
    }
]

Document output type

You can select the output type of the resulting file: PPTX or PDF.

PPTX or PDF output.

Locale

An optional parameter that allow to specify the desired regional culture format. You can pick the value from predefined list. If you don’t specify value, default value will be “en-US” (english, USA). All allowable regional culture formats you can find here

Example

Create document from PPTX template example

Create XLSX document from template

Creates Word XLSX document from template. Review Excel XLSX templates section for more information about template syntax.

Also there is an article describing how to work with this action in case of managing documents.

Output Parameters

Parameter

Description

Example

File Content

The content of the result .xlsx or .pdf file.

It is the content of the result file.

Input Parameters

Parameter

Description

Example

Template file

The raw content of the source .xlsx template file. You can extract file content from other connectors like:

  • SharePoint

  • Salesforce

  • Box

  • OneDrive

  • Google Drive

  • Dropbox

  • SFTP

  • File System

List of Power Automate (Microsoft Flow) connectors

Review Word XLSX templates section for more information about template syntax.

Example of simple table template:

Simple table template

Template data

Data to bind to the template in JSON format. You can get this data from some other Power Automate (Microsoft Flow) connector. For example you can query SharePoint list or some other system.

[
    {
        "firstName": "Efren",
        "lastName": "Gaskill",
        "email": "egaskill0@opensource.org",
        "payments": [
            {
                "date": "3/10/2018",
                "amount": "$8.91"
            },
            {
                "date": "1/7/2018",
                "amount": "$0.56"
            }
        ]
    }
]

Document output type

You can select the output type of the resulting file: XLSX or PDF.

XLSX or PDF output.

Locale

An optional parameter that allow to specify the desired regional culture format. You can pick the value from predefined list. If you don’t specify value, default value will be “en-US” (english, USA). All allowable regional culture formats you can find here

Example

Create document from XLSX template Example

Create HTML from template

Generates raw HTML from a raw HTML template with the help of Power Automate (Microsoft Flow). You can find more examples in this article.

Output Parameters

Parameter

Description

Example

Result HTML

Raw HTML result created from a source HTML template.

<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <title>HTML from template</title>
</head>
<body>
    <ul>
        <li>David Navarro </li>
        <li>Jessica Adams</li>
        <li>Derek Clark</li>
    </ul>
</body>
</html>

Input Parameters

Parameter

Description

Example

Source HTML

HTML content of a source template. You can specify raw HTML here or extract file content from other connectors like:

  • SharePoint

  • Salesforce

  • Box

  • OneDrive

  • Google Drive

  • Dropbox

  • SFTP

  • File System

List of Power Automate (Microsoft Flow) connectors

You can find description of template syntax in this article.

<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <title>HTML from template</title>
</head>
<body>
    <ul>
        {{#each data}}
        <li>{{name}}</li>
        {{/each}}
    </ul>
</body>
</html>

Template data

Data to bind to the template in JSON format. You can get this data from some other Power Automate (Microsoft Flow) connector. For example you can query SharePoint list or some other system.

{
    "data": [
        {
            "name": "David Navarro "
        },
        {
            "name": "Jessica Adams"
        },
        {
            "name": "Derek Clark"
        }
    ]
}

Locale

An optional parameter that allow to specify the desired regional culture format. You can pick the value from predefined list. If you don’t specify value, default value will be “en-US” (english, USA). All allowable regional culture formats you can find here

Example

Convert HTML document to PDF Example

Fill Merge Fields in DOCX document

Creates .docx document by filling merge fields in a .docx document with the help of Power Automate (Microsoft Flow). You can find more examples in this article.

Output Parameters

Parameter

Description

Example

File Content

The content of the result .docx file.

It is a Base64 encoded content of the result file.

Input Parameters

Parameter

Description

Example

DOCX document content

The raw content of the source .docx file with merge fields. You can extract file content from other connectors like:

  • SharePoint

  • Salesforce

  • Box

  • OneDrive

  • Google Drive

  • Dropbox

  • SFTP

  • File System

List of Power Automate (Microsoft Flow) connectors

You can find insturctions about creation of a document with merge fields in this article.

Use this link to download the sample document.

Template data

Data in JSON format that will be used to fill merge fields in the source document. You can get this data from some other Power Automate (Microsoft Flow) connector. For example you can query SharePoint list or some other system.

{
    "EmployerFullName": "David Navarro",
    "EmployeeFullName": "Anil Mittal",
    "CompanyName": "Contoso LLC",
    "Position": "Marketing manager",
    "SalaryAmount": 5000,
    "ListOfBenefits": "list of any benefits that come with employment",
    "BonusesPolicyDescription": "annual evaluation",
    "EffectiveDate": "10/27/2017",
    "TerminationDate": "10/27/2018",
    "State": "New York"
}

Example

Create document from DOCX template Example

Convert DOCX to PDF

Converts .docx document to PDF document with the help of Power Automate (Microsoft Flow). You can find more examples in this article.

Output Parameters

Parameter

Description

Example

File Content

The content of the result PDF file.

It is a Base64 encoded content of the result file.

Input Parameters

Parameter

Description

Example

Document content

The raw content of the source .docx file. You can extract file content from other connectors like:

  • SharePoint

  • Salesforce

  • Box

  • OneDrive

  • Google Drive

  • Dropbox

  • SFTP

  • File System

List of Power Automate (Microsoft Flow) connectors

It is content of the source file.

Example

Convert DOCX document to PDF Example

Convert XLSX to PDF

Converts .xlsx document to PDF document with the help of Power Automate (Microsoft Flow). You can find more examples in this article.

Output Parameters

Parameter

Description

Example

File Content

The content of the result PDF file.

It is a Base64 encoded content of the result file.

Input Parameters

Parameter

Description

Example

Document content

The raw content of the source .xlsx file. You can extract file content from other connectors like:

  • SharePoint

  • Salesforce

  • Box

  • OneDrive

  • Google Drive

  • Dropbox

  • SFTP

  • File System

List of Power Automate (Microsoft Flow) connectors

It is content of the source file.

Example

Convert DOCX document to PDF Example

Convert DOC to DOCX

Converts .doc document to .docx document with the help of Power Automate (Microsoft Flow).

Output Parameters

Parameter

Description

Example

File Content

The content of the result DOCX file.

It is a Base64 encoded content of the result file.

Input Parameters

Parameter

Description

Example

Document content

The raw content of the source .doc file. You can extract file content from other connectors like:

  • SharePoint

  • Salesforce

  • Box

  • OneDrive

  • Google Drive

  • Dropbox

  • SFTP

  • File System

List of Power Automate (Microsoft Flow) connectors

It is content of the source file.

Example

Convert DOC document to DOCX Example

Convert XLS to XLSX

Converts .xls document to .xlsx document with the help of Power Automate (Microsoft Flow). Find the description of how to bulk convert .xls to .xlsx in this article.

Output Parameters

Parameter

Description

Example

File Content

The content of the result XLSX file.

It is a Base64 encoded content of the result file.

Input Parameters

Parameter

Description

Example

Document content

The raw content of the source .xls file. You can extract file content from other connectors like:

  • SharePoint

  • Salesforce

  • Box

  • OneDrive

  • Google Drive

  • Dropbox

  • SFTP

  • File System

List of Power Automate (Microsoft Flow) connectors

It is content of the source file.

Example

Convert XLS document to XLSX Example

Convert PPT to PPTX

Converts .ppt document to .pptx document with the help of Power Automate (Microsoft Flow).

Output Parameters

Parameter

Description

Example

File Content

The content of the result PPTX file.

It is a Base64 encoded content of the result file.

Input Parameters

Parameter

Description

Example

Document content

The raw content of the source .ppt file. You can extract file content from other connectors like:

  • SharePoint

  • Salesforce

  • Box

  • OneDrive

  • Google Drive

  • Dropbox

  • SFTP

  • File System

List of Power Automate (Microsoft Flow) connectors

It is content of the source file.

Example

Convert PPT document to PPTX Example

Convert PPTX to PDF

Converts .pptx document to PDF document with the help of Power Automate (Microsoft Flow).

Output Parameters

Parameter

Description

Example

File Content

The content of the result PDF file.

It is a Base64 encoded content of the result file.

Input Parameters

Parameter

Description

Example

Document content

The raw content of the source .pptx file. You can extract file content from other connectors like:

  • SharePoint

  • Salesforce

  • Box

  • OneDrive

  • Google Drive

  • Dropbox

  • SFTP

  • File System

List of Power Automate (Microsoft Flow) connectors

It is content of the source file.

Example

Convert PPTX document to PDF Example

Convert HTML to PDF

Converts HTML document to PDF document with the help of Power Automate (Microsoft Flow). You can find more examples in this article.

Note

There could be an issue converting certain symbols such as £. Add the following line in the HTML head element

<meta http-equiv=”Content-Type” content=”text/html; charset=UTF-8”>

You can find more information about using custom fonts with Convert HTML to PDF action here.

Output Parameters

Parameter

Description

Example

File Content

The content of the result PDF file.

It is a Base64 encoded content of the result file.

Input Parameters

Parameter

Description

Example

Source HTML

HTML content of a source file. You can specify raw HTML here or extract file content from other connectors like:

  • SharePoint

  • Salesforce

  • Box

  • OneDrive

  • Google Drive

  • Dropbox

  • SFTP

  • File System

List of Power Automate (Microsoft Flow) connectors

<!doctype html>
<html>

<head>
    <meta charset="utf-8">
    <title>HTML to PDF example
    <style>
        div {
            border: 1px solid lightgray;
            padding: 5px;
            float: left;
        }
    </style>
</head>
<body>
    <div>
        Text in box1
    </div>
    <div>
        Text in box2
    </div>
</body>
</html>

Header HTML (Modern engine)

HTML markup that should be added as a Header. If you want to use styles, add CSS directly to the Header HTML code.

<!DOCTYPE html>
 <html>
   <head>
     <title>Test</title>
   </head>
 <body id="header" style="margin-bottom: 130px;">
  <div style="font-size:10px !important; color:#808080; padding-left:10px">
    This is header
  <br/>
  Title: <span class="title"></span>
   </div>
 </body>
 </html>

Footer HTML (Modern engine)

HTML markup that should be added as a Footer. If you want to use styles, add CSS directly to the Footer HTML code. Also, with the Modern Engine you can use pageNumber and totalPages as a class of an element to automatically add the values.

PageNumber: <span class="pageNumber"></span>
<br/>
TotalPage: <span class="totalPages"></span>
<!DOCTYPE html>
 <html>
   <head>
    <title>Test</title>
   </head>
 <body id="footer">
   <div style="font-size:10px !important; color:#808080; padding-left:10px">
     Footer Text.
   <br/>
   PageNumber: <span class="pageNumber"></span>
   <br/>
   TotalPage: <span class="totalPages"></span>
   <br/>
   <p>email: <a>contact@plumsail.com</a>.</p>
   </div>
 </body>
 </html>

Header HTML (Classic engine)

HTML markup that should be added as a Header.

<!DOCTYPE html>
<html>
  <head>
    <title></title>
  </head>
<body>
This is header
</body>
</html>

Footer HTML (Classic engine)

HTML markup that should be added as a Footer.

<!DOCTYPE html>
 <html>
   <head>
     <title></title>
   </head>
 <body>
 This is footer
 </body>
 </html>

Paper Size

Paper size for output PDF file.

  • A4

  • Letter

  • LetterSmall

  • Tabloid

  • Ledger

  • Legal

  • Statement

  • Executive

  • A2

  • A3

  • A4Small

  • A5

  • B4

  • B5

Orientation

Page orientation for output PDF file.

  • Portrait

  • Landscape

Margins

The page margins in millimeters. The syntax is the same as in CSS.

  • 25 50 75 100;

This will set top margin as 25mm, right margin as 50mm, bottom margin as 75mm, left margin ias 100mm.

Engine

Defines what engine is used when converting the source HTML to PDF.

  • Modern - Chrome-based engine. It supports modern HTML and CSS standards, including headers and footers.

  • Classic - Old Qt WebKit-based engine. It has more configuration, but it doesn’t support modern HTML and CSS standards.

Example

Convert HTML document to PDF Example

Add watermark to PDF

“Add watermark to PDF” action support a few types of watermarks: Text, Image, PDF. You can find examples on how yo use the action here.

Selection of the watermark type

When you added this action to your Flow, you need to pick of those: text, image, pdf.

You can find the documentation for all watermark types included in “Add watermark to PDF” action below:

Add image watermark to PDF

Please, see a detailed example here.

Output Parameters

Parameter

Description

Example

File Content

The content of the result PDF file.

It is a Base64 encoded content of the result file.

Input Parameters

Parameter

Description

Example

Document content

Raw content of PDF document.

You may get the content of the source PDF file by “Get file content” action from “SharePoint” connector or from some other connector.

You may use this link to download a sample 10 pages PDF file.

Image content

Raw content of image source. Available extensions: png, tiff, jpg, webp, gif, bmp, svg.

You may get the content of the source image file by “Get file content” action from “SharePoint” connector or from some other connector.

Watermark position

You can select one of the predefined position of watermark on the page. Available preset positions on the document page:

  1. Top Left

  2. Top Middle

  3. Top Right

  4. Middle Left

  5. Center

  6. Middle Right

  7. Bottom Left

  8. Bottom Middle

  9. Bottom Right

../../_images/add-a-watermark-to-pdf-content-positions.webp

MiddleRight

Opacity

The degree of transparency of the watermark image. This is a percentage value.

50

Pages

The range of pages or a list of page numbers delimited by ‘;’.

  • 1;3;5

  • 1-5;7;9

  • 1-3;9-11;5

  • 1;3-7;10-20

Password

The password to decrypt the source document. If it was encrypted earlier.

PAs$word

PDF owner password

Enter an optional owner password here. This password can be used to disable document restrictions.

OwNEr_PAs$word

Watermark image width

A new width of the image that will be used for watermark. If set - source image will be resized

150

Watermark image height

A new height of the image that will be used for watermark. If set - source image will be resized

100

Auto scale

If true, the image will be scaled as close as possible to the values given in Width and Height while maintaining the original proportions. Otherwise, the image will be converted to the specified Height and Width without preserving the proportions.

true

X coordinate

Absolute X coordinate value. If the predefined positions (see “Watermark position”) do not suit you, then you can set the desired location of the watermark using absolute coordinates. The origin in the bottom left corner. See the picture

../../_images/add-a-watermark-to-pdf-coordinates-start.webp

If set - “Watermark position” parameter will be ignored

50

Y coordinate

Absolute Y coordinate value. If set - “Watermark position” parameter will be ignored

50

Example

Image watermark options

Add text watermark to PDF

Please, see a detailed example here.

Output Parameters

Parameter

Description

Example

File Content

The content of the result PDF file.

It is a Base64 encoded content of the result file.

Input Parameters

Parameter

Description

Example

Document content

Raw content of PDF document.

You may get the content of the source PDF file by “Get file content” action from “SharePoint” connector or from some other connector.

You may use this link to download a sample 10 pages PDF file.

Text content

Text that will be used as watermark

watermark test

Angle

The rotation angle of the text. The value in degrees.

45

Color

Hex value of html color. You can select the desired color using this tool https://www.w3schools.com/colors/colors_picker.asp

  • 000000

  • FFFFFF

Watermark position

You can select one of the predefined position of watermark on the page. Available preset positions on the document page:

  1. Top Left

  2. Top Middle

  3. Top Right

  4. Middle Left

  5. Center

  6. Middle Right

  7. Bottom Left

  8. Bottom Middle

  9. Bottom Right

../../_images/add-a-watermark-to-pdf-content-positions.webp

MiddleRight

Opacity

The degree of transparency of the watermark image. This is a percentage value.

50

Pages

The range of pages or a list of page numbers delimited by ‘;’.

  • 1;3;5

  • 1-5;7;9

  • 1-3;9-11;5

  • 1;3-7;10-20

Password

The password to decrypt the source document. If it was encrypted earlier.

PAs$word

PDF owner password

Enter an optional owner password here. This password can be used to disable document restrictions.

OwNEr_PAs$word

X coordinate

Absolute X coordinate value. If the predefined positions (see “Watermark position”) do not suit you, then you can set the desired location of the watermark using absolute coordinates. The origin in the bottom left corner. See the picture

../../_images/add-a-watermark-to-pdf-coordinates-start.webp

If set - “Watermark position” parameter will be ignored

50

Y coordinate

Absolute Y coordinate value. If set - “Watermark position” parameter will be ignored

50

Example

Text watermark options

Add pdf watermark to PDF

Please, see a detailed example here.

Output Parameters

Parameter

Description

Example

File Content

The content of the result PDF file.

It is a Base64 encoded content of the result file.

Input Parameters

Parameter

Description

Example

Document content

Raw content of PDF document.

You may get the content of the source PDF file by “Get file content” action from “SharePoint” connector or from some other connector.

You may use this link to download a sample 10 pages PDF file.

PDF watermark document

Raw content of the PDF file that will be used as a watermark.

You may use this link to download a sample PDF file for using as PDF watermark.

Overlay position

You can select one of the predefined layer for overlay rendering position. Available preset positions:

  • Background

  • Foreground

    Default value is “Background”.

Background

Pages

The range of pages or a list of page numbers delimited by ‘;’.

  • 1;3;5

  • 1-5;7;9

  • 1-3;9-11;5

  • 1;3-7;10-20

Example

PDF watermark options

Split PDF

Split PDF document with the help of Power Automate (Microsoft Flow). You can find more examples in this article.

Output Parameters

Parameter

Description

Example

Result Files Contents

The array of raw content of result files.

It is an array of Base64 encoded files. You can iterate through them and save them somewhere.

Input Parameters

Parameter

Description

Example

PDF Document Content

Raw content of PDF document.

You may get the content of the source PDF file by “Get file content” action from “SharePoint” connector or from some other connector.

You may use this link to download a sample 10 pages PDF file.

Start Page

Index of the first page to start split from (indexes start from 1).

3

End Page

Index of the last page to split (inclusive). By default will use the last page of the source document.

7

Split at Page

Number of pages per partition.

2

Password

The password to decrypt the source document. If it was encrypted earlier.

PAs$word

Example

Split PDF Example

Merge PDF

Merge PDF document with the help of Power Automate (Microsoft Flow). Please, see a detailed example here.

Output Parameters

Parameter

Description

Example

File Content

Raw content of the result file.

It is a Base64 encoded content of the result file.

Input Parameters

Parameter

Description

Example

PDF Documents Content

The array of raw content of PDF documents.

You may get the content of the source PDF file by “Get file content” action from “SharePoint” connector or from some other connector.

Example

You can add individual files:

Merge PDF Example

You can also input an array of files. Click an icon on the right to switch to the view where you can input an entire array and select the array from the dynamic content in Power Automate:

Merge PDF Example

Merge DOCX

Merge DOCX document with the help of Power Automate (Microsoft Flow).

Output Parameters

Parameter

Description

Example

File Content

Raw content of the result file.

It is a Base64 encoded content of the result file.

Input Parameters

Parameter

Description

Example

DOCX Documents Content

The array of raw content of DOCX documents.

You may get the content of the source DOCX file by “Get file content” action from “SharePoint” connector or from some other connector.

Example

Merge DOCX Example

Extract text from PDF document

Extracts text from PDF document to Raw or HTML format with the help of Power Automate (Microsoft Flow).

Output Parameters

Parameter

Description

Example

File Content

Text or raw HTML from the result file.

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
        <head><title></title>
            <meta http-equiv="Content-Type" content="text/html; charset="UTF-8">
        </head>
        <body>
            <div style="page-break-before:always; page-break-after:always">
                <div>
                    <p>
                        <b>3</b>
                    </p>
                </div>
            </div>
            <div style="page-break-before:always; page-break-after:always">
                <div>
                    <p>
                        <b>4</b>
                    </p>
                </div>
            </div>
            <div style="page-break-before:always; page-break-after:always">
                <div>
                    <p>
                        <b>5</b>
                    </p>
                </div>
            </div>
            <div style="page-break-before:always; page-break-after:always">
                <div>
                    <p>
                        <b>6</b>
                    </p>
                </div>
            </div>
            <div style="page-break-before:always; page-break-after:always">
                <div>
                    <p>
                        <b>7</b>
                    </p>
                </div>
            </div>

            </div></div>
        </body>
    </html>

Input Parameters

Parameter

Description

Example

PDF Document Content

Raw content of PDF document.

You may get the content of the source PDF file by “Get file content” action from “SharePoint” connector or from some other connector.

Start Page

Index of the first page to start extraction (indexes start from 1).

3

End Page

Index of the last page to extract (inclusive). By default we will use the last page of the source document.

7

Result Type

Raw or HTML.

HTML

Password

The password to decrypt the source document. If it was encrypted earlier.

PAs$word

Example

Extract text from PDF Example

Convert PDF to Image

Converts PDF document to image (jpeg, png, gif, bmp) with the help of Power Automate (Microsoft Flow).

Output Parameters

Parameter

Description

Example

Result Files Contents

The array of raw content of result image files.

It is an array of Base64 encoded contents of result image files. You can iterate through them and save somewhere.

Input Parameters

Parameter

Description

Example

PDF Document Content

Raw content of PDF document.

You may get the content of the source PDF file by “Get file content” action from “SharePoint” connector or from some other connector.

Start Page

Index of the first page to start extraction (indexes start from 1).

3

End Page

Index of the last page to extract (inclusive). By default we will use the last page of the source document.

7

Pages

Page numbers for extraction separated by ‘;’ (only these pages will be extracted).

4;6;7

Image Format

The format of the result image.

  • Jpeg

  • Png

  • Gif

  • Bmp

DPI

The resolution of the result image (150 based).

300

Password

The password to decrypt the source document. If it was encrypted earlier.

PAs$word

Example

Convert PDF to Image Example

Fill in PDF Form

Fills in PDF form by provided data with the help of Power Automate (Microsoft Flow). Review How to automatically populate fillable PDF based on data from third party system article for more information.

Output Parameters

Parameter

Description

Example

File Content

Raw content of result file.

It is a Base64 encoded content of result file.

Input Parameters

Parameter

Description

Example

PDF Document Content

Raw content of PDF document.

You may get the content of the source PDF file by “Get file content” action from “SharePoint” connector or from some other connector.

JSON Data

The data that will be used to fill in the form.

{
    "FirstName": "David",
    "LastName": "Navarro",
    "CompanyName": "Contoso LLC",
    "Position": "Marketing manager"
}

Lock form fields

Disable fields editing after filling them.

If you want to lock the fields after filling the PDF form activate the option.

Example

Fill in PDF Form Example

Get Form from PDF

Returns data from fillable PDF as JSON with the help of Power Automate (Microsoft Flow). Review these articles for more information:

Output Parameters

Parameter

Description

Example

Form Data

Data from fillable PDF form as JSON.

{
    "FirstName": "David",
    "LastName": "Navarro",
    "CompanyName": "Contoso LLC",
    "Position": "Marketing manager"
}

Input Parameters

Parameter

Description

Example

PDF Document Content

Raw content of PDF document.

You may get the content of the source PDF file by “Get file content” action from “SharePoint” connector or from some other connector.

Password

The password to decrypt the source document. If it was encrypted earlier.

PAs$word

Example

Get Form from PDF Example

Protect PDF document

Protects PDF by adding passwords, copy-, printing-, and other protections to PDF file with the help of Power Automate (Microsoft Flow).

Output Parameters

Parameter

Description

Example

File Content

Raw content of result file.

It is a Base64 encoded content of result file.

Input Parameters

Parameter

Description

Example

PDF Document Content

Raw content of PDF document.

You may get the content of the source PDF file by “Get file content” action from “SharePoint” connector or from some other connector.

Enable Printing

Protect the PDF file from being printed out.

Yes

Enable Modification

Protect the PDF file from being edited.

Yes

Enable Extract Data

Allows extraction of text, images, and other media from the PDF file.

Yes

Enable Annotate

Allows annotation (e.g. comments, form fill-in, signing) of the PDF file.

Yes

PDF Owner Password

Enter an optional owner password here. This password can be used to disable document restrictions.

OwNEr_PAs$word

PDF User Password

Enter an optional user password here. Each time an user opens the PDF he will be asked for this password. If you do not want a password prompt then leave this field blank.

U$er_PAs$word

Password

The password to decrypt the source document. If it was encrypted earlier.

PAs$word

Example

Protect PDF Example

Get PDF protection information

Returns True if the source PDF is protected and False otherwise.

Output Parameters

Parameter

Description

Example

isPasswordProtected

True or False.

You can use If option in the flow to specify further steps depending on the output.

Input Parameters

Parameter

Description

Example

PDF Document Content

Raw content of PDF document.

You may get the content of the source PDF file by “Get file content” action from “SharePoint” connector or from some other connector.

Get PDF protection info

Compress PDF document

Compresses a source PDF document. Please check out the article about using the action.

Output Parameters

Parameter

Description

Example

File Content

Raw content of result file

It is a Base64 encoded content of result file.

Input Parameters

Parameter

Description

Example

PDF Document Content

Raw content of PDF document.

You may get the content of the source PDF file by “Get file content” action from “SharePoint” connector or from some other connector.

Compress pdf document

Parse CSV

Parses a CSV file into an array of objects with properties in Power Automate (Microsoft Flow). Review How to read a CSV file in Power Automate (Microsoft Flow) and bulk generate documents article for more information.

Output Parameters

Parameter

Description

Example

Items

The collection of objects. Each object represents a CSV row and has properties corresponding to the CSV headers.

Each CSV header is represented by an output parameter. You can refer to a single item selecting it in MS Flow.

[
  {
    "Id": "145768",
    "FirstName": "Derek",
    "LastName": "Clark",
    "Company": "Contoso",
    "Email": "derek.clark@contoso.com",
   }
 ]
../../_images/parse-csv-output.webp

Input Parameters

Parameter

Description

Example

Content of CSV document

The raw content of the source CSV file. You can extract file content from other connectors like:

  • SharePoint

  • Salesforce

  • Box

  • OneDrive

  • Google Drive

  • Dropbox

  • SFTP

  • File System

List of Power Automate (Microsoft Flow) connectors

It is content of the source file.

Headers

Comma separated list of columns.

You need to specify the headers in the same order as in the CSV file. Ex.: Id, FirstName, LastName, Company, Email

Delimiter

Delimiter of columns. By default it’s a comma.

You can select from the following default values: Comma, Semicolon, Tab or specify a custom value.

Locale

The locale that will be applied to the source document.

Specify the locale in order to correctly parse currencies, dates and other depending values.

Limit

Returns the first “n” rows

You can limit the number of returned rows from the source document.

Skip first Line

Select ‘Yes’ if your CSV has headers as a first line

If your CSV file has headers as a first line the select ‘Yes’. In that case the action will start collecting the values from the second line of the CSV file. If you select ‘No’, or the empty value then the action will start collecting values from the first line of the CSV file.

Example

Parse CSV file

Convert Csv to Excel

Converts a CSV file to Excel in Power Automate (Microsoft Flow). Review How to convert CSV files to Excel in Power Automate Flow article for more information.

Output Parameters

Parameter

Description

Example

File Content

Raw content of result file

It is a Base64 encoded content of result file.

Input Parameters

Parameter

Description

Example

Content of CSV document

The raw content of the source CSV file. You can extract file content from other connectors like:

  • SharePoint

  • Salesforce

  • Box

  • OneDrive

  • Google Drive

  • Dropbox

  • SFTP

  • File System

List of Power Automate (Microsoft Flow) connectors

It is content of the source file.

Delimiter

Delimiter of columns. By default it’s a comma.

You can select from the following default values: Comma, Semicolon, Tab, Pipe or specify a custom value.

Locale

The locale that will be applied to the document.

Specify the locale in order to correctly convert currencies, dates and other depending values.

Limit

Returns the first “n” rows

You can limit the number of returned rows from the source document.

Use first line as headers

Select ‘Yes’ to read headers from the first line of the source CSV

If your CSV file has headers as a first line then select ‘Yes’.

Example

Convert CSV to Excel

Regular Expression Match

Searches an input string for all occurrences of a regular expression and returns all the matches with the help of Power Automate (Microsoft Flow). We would recommend you to use Regex 101 tool to test your expressions. It supports the same syntax as actions.

Note

By default, Regex101 works with the PCRE2 syntax. You should change it to .NET (C#) in the “Flavor” section under “Save & Share”.

You can find more examples in this article.

Output Parameters

Parameter

Description

Example

Is Success

True if the input string has at least one occurrences of a regular expression, otherwise false.

true

Matches

The dynamic response based on a pattern that is used in this action. Contains all matches groups that included in the pattern (named or unnamed).

Match0, TaskId, status

Input Parameters

Parameter

Description

Example

Pattern

Regular expression pattern. This pattern can contain inline options to modify behavior of the regular expression. Such options have to be placed in the beginning of the expression inside brackets with question mark: (?YOUR_OPTIONS). For example options (?mi) will allow to process multi line text with case insensitivity. You can find additional information about inline options in the MSDN article. Also you can find an example in this article.

Task (?<TaskId>\d+):(?<status>Approve|Reject)

Text

String to search for matches.

Task 5:Approve\nTask 53:Reject\nTask 52:Approve

Example

Regular Expression Match Example

Regular Expression Replace

In a specified input string, replaces all strings that match a regular expression pattern with a specified replacement string. We would recommend you to use Regex 101 tool to test your expressions. It supports the same syntax as actions.

Note

By default, Regex101 works with the PCRE2 syntax. You should change it to .NET (C#) in the “Flavor” section under “Save & Share”.

Output Parameters

Parameter

Description

Example

Result

Result string with replaced substrings that match a regular expression pattern.

John Smith

Input Parameters

Parameter

Description

Example

Pattern

Regular expression pattern. This pattern can contain inline options to modify behavior of the regular expression. Such options have to be placed in the beginning of the expression inside brackets with question mark: (?YOUR_OPTIONS). For example options (?mi) will allow to process multi line text with case insensitivity. You can find additional information about inline options in the MSDN article.

Name: (?<Name>.+)

Text

String to search for matches.

Name: John Smith

Replacement

Replacement string or backreference. The name or number of a captured group should be put between braces in ${}.

${Name}

Example

Regular Expression Replace Example

Regular Expression Test

Indicates whether the regular expression specified in the Regex constructor finds a match in a specified input string. We would recommend you to use Regex 101 tool to test your expressions. It supports the same syntax as actions.

Note

By default, Regex101 works with the PCRE2 syntax. You should change it to .NET (C#) in the “Flavor” section under “Save & Share”.

Output Parameters

Parameter

Description

Example

Is Success

True if the input string has at least one occurrences of a regular expression, otherwise false.

true

Input Parameters

Parameter

Description

Example

Pattern

Regular expression pattern. This pattern can contain inline options to modify behavior of the regular expression. Such options have to be placed in the beginning of the expression inside brackets with question mark: (?YOUR_OPTIONS). For example options (?mi) will allow to process multi line text with case insensitivity. You can find additional information about inline options in the MSDN article.

(?<TestGroup1>\d4) (\d5)

Text

String to search for matches.

24 45\n435 64 85

Example

Regular Expression Test Example