Hi,
Step 1: Create Your HTML File
Save your HTML content as a .docx file (recommended), or .html.
If you use .html, make sure it's well-formed and includes inline CSS for better rendering.
Save the file locally or upload it manually to your OneDrive.
Step 2: Set Up Your Power Automate Flow
Go to Power Automate.
Click Create > Automated Flow or Instant Cloud Flow (for testing).
Add a trigger, such as:
Manually trigger a flow (for testing), or
When a file is created in OneDrive.
Step 3: Get the File from OneDrive
Add a OneDrive for Business action:
Get file content
Choose your file from OneDrive or dynamically use the trigger output.
Step 4: Convert the File to PDF
Add a OneDrive action:
Convert file
File: Select output from the Get file content step.
Target Type: PDF
Step 5: Save the Converted PDF (Optional)
Add a OneDrive action:
Create file
Folder Path: Select where to store the PDF
File Name: e.g. ConvertedDocument.pdf
File Content: Output from the Convert file step.
Note: The file must be under 2MB.
If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.
Regards,
Riyaz