Many times, there is a requirement of converting documents stored in SharePoint Document library to PDF file format.
In this article you will see few easy steps which will take a file from SharePoint document library > convert it into PDF > Notify the user via Email with attached converted PDF file
Let’s look at the high-level Automation flow, then will look at trigger and actions in detail

Fig 1.1 High level Flow Steps
As shown in Fig 1.1, let us go to
Step 1
When a file is created in SP Document library (properties only) – Choose SharePoint trigger, when a file is created (properties only)
In Fig 1.2, add the following details
- Site address: Add site name where your document library resides
- Library name: Add library name where your document resides

Fig 1.2
Step 2
Choose Get File Content action from SharePoint Actions this connector will get all the details of the file residing in the document library
In Fig 1.3 add the following details,
- Site Address: Add site name where your document resides
- File Identifier: From the dynamic content select Identifier property

Fig 1.3
Now we have the file, which is to be converted to PDF, will have to save this same file to OneDrive as we will be using OneDrive’s Convert File connector which will take the file from OneDrive and convert to PDF
Step 3
Create File connector under OneDrive for Business Actions
In Fig 1.4, add the following details,
- Folder Path: Add the Folder path of where you want your files to be saved in OneDrive or give the root folder path “/”
- File Name: Select from the dynamic content the File name with extension, this will save the file with the filename same as in document library
- File Content: This will have the body of the file, so pass Body as dynamic property




Join the conversation! Your thoughts help the community grow.