Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Answered

Converting a docx to PDF and attaching to email

(0) ShareShare
ReportReport
Posted on by 49

Hello all,

 

I tried so many things and I can't figure out the issue. I'm trying to attach a PDF file that came from a docx and for some reason everytime it comes back with an error saying that the content can't be null or empty. I'm attaching to this conversation my flow so you guys understand a bit better. So basically 1- I populate a Word with stuff I get back from a Microsoft Forms. 2- I create the docx in my OneDrive so that the next step convert it to a PDF (it couldn't do it if I didn't save it in my OneDrive). 3- Convert the docx to PDF. Then I tried 3 differents approach. 1- I tried Creating a file in my sharepoint and reading the content and then pass it to the email but that gave me the error same if I create a file in my OneDrive and then reading the content and try to attach that. 

 

I verified and the PDF is created in my sharepoint and my OneDrive correctly but I can't attach it to the email.

 

Thank you for the help.

 

jfhandfield_0-1627706056843.pngjfhandfield_1-1627706087987.pngjfhandfield_2-1627706106182.png

 

  • Verified answer
    jfhandfield Profile Picture
    49 on at
    Re: Converting a docx to PDF and attaching to email

    I found my problem. I was adding the word file and the PDF file. But for some reason the Word file that was fine a minute ago was my problem now. I had to delete my attachement and re-add it. 

     

    Problem solved. Now my Word AND my PDF is getting attached to my email

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,668 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,004 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow