web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Creating a PDF from HT...
Power Automate
Answered

Creating a PDF from HTML and saving in Sharepoint

(0) ShareShare
ReportReport
Posted on by 11

I have a flow that creates an HTML document containing information from a SharePoint list; the HTML is then converted to a PDF, and saved to a folder in OneDrive.

 

Is there a way to convert the HTML document to a PDF and save it in a SharePoint folder? If not, what is the best option?

Categories:
  • georgeee Profile Picture
    7 on at

    @michael34  Yes there is a way. 

     

    When you do action Create File, Instead of doing "Create File OneDrive" - Choose "Create File SharePoint"

    georgeee_0-1663192716791.png

    I hope this helps 🙂

     

     

  • michael34 Profile Picture
    11 on at

    I've tried that, and encountered two problems.

     

    The first time I tested it, I got the error message: 'A file with the same name is currently being saved to this site. Change the filename and try to save again.'

     

    So I changed the resultant file name, tested it again, and got a 'File Not Found' error message. 

     

    flow shot.png

  • Verified answer
    v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @michael34 ,

     

     'A file with the same name is currently being saved to this site. Change the filename and try to save again.'

    Please add a unique value into the file name to avoid this issue. For example:

    vbofengmsft_0-1663317638020.png

     

     'File Not Found' error message

    Please check first if the filename has special characters then you should omit those special characters. On your side , please remove the '#' from the file name.

     

     

    Best Regards,

    Bof

  • michael34 Profile Picture
    11 on at

    The '#' was the issue, thank you. It now works swimmingly.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 424

#2
11manish Profile Picture

11manish 328 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 274

Last 30 days Overall leaderboard