Skip to main content

Notifications

Power Automate - Building Flows
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!
 
 
 
 
 
 
 
 
  • Suggested answer
    CU10011243-0 Profile Picture
    CU10011243-0 on at
    Create document from SharePoint List Item
    Awesome, thank you so much! I've successfully created a workflow that does just that!
  • Expiscornovus Profile Picture
    Expiscornovus 31,039 on at
    Create document from SharePoint List Item
     
    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

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

Kickstarter Events…

Register for Microsoft Kickstarter Events…

Tuesday Tip #12 Start your Super User…

Welcome to a brand new series, Tuesday Tips…

Tuesday Tip #13 Writing Effective Answers…

Welcome to a brand new series, Tuesday Tips…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 144,858

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,505

Leaderboard