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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Create document from S...
Power Automate
Suggested Answer

Create document from SharePoint List Item

(0) ShareShare
ReportReport
Posted on by
Hello Community!
 
I have created a Power Automate workflow which runs successfully, however when I try to open the file using .docx or .PDF file extension in a SharePoint document library, it doesn't open. 
 
 
 
 
 
 
 
 
The error message I get from Microsoft Word online is: "file cannot be opened for editing"
The error message I get when I try and open the .PDF file is "Failed to load PDF Document"
 
I also created a .txt file to check whether the data was being retrieved correctly by the flow to which there was none!
 
Can anyone advise where I'm going wrong in this flow please or how to get around this issue? Thank you!
 
 
 
 
 
 
 
 
Categories:
I have the same question (0)
  • Expiscornovus Profile Picture
    33,195 Most Valuable Professional on at
     
    Try creating the HTML file first and use the convert file action (both OneDrive for Business actions). After that you can use the encoded file content to create the pdf file in SharePoint.
     
    Below is an example
     
     
    The test result
     
     
     

    Happy to help out 😁

    I share more #PowerAutomate and #SharePointOnline content on my Blog, Bluesky profile or Youtube Channel
  • Suggested answer
    CU10011243-0 Profile Picture
    on at
    Awesome, thank you so much! I've successfully created a workflow that does just that!

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 519 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 296 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard