Skip to main content

Notifications

Community site session details

Community site session details

Session Id : YZ6zPu5hySgUSm2d2vqHfR
Power Automate - Building Flows
Suggested answer

Excel uploaded in forms to PDF after approval.

Like (0) ShareShare
ReportReport
Posted on 14 Mar 2025 22:24:40 by
Hi all!

I have the following flow.
  1. When a new response is submitted
    1. In the form the people upload an Excel attachment
  2. Get response details
  3. Create a New Folder (the folder path is based on the response ID)
  4. Parse JSON to get the Excel URL
  5. Then Inside a For Each loop (because of the Parse JSON)
    1. Start and wait for an approval (I use the Body Link in the approval Link, so that the approvers can open the file.)
If approved I'd like to convert the Excel into PDF and store in the previously created folder... How can I do that? I've not figured out how can I get the content of the uploaded Excel.

Thank you very much!
  • Suggested answer
    Robu1 Profile Picture
    1,056 Super User 2025 Season 1 on 14 Mar 2025 at 22:56:53
    Excel uploaded in forms to PDF after approval.

    Hi ,

    Thank you for choosing Microsoft Power Platform Communities.
     

    To achieve your goal of converting an uploaded Excel file to PDF after approval and storing it in the created folder, here’s a step-by-step guide:

    1. Retrieve the Excel File Content:

      • Use the "Get file content using path" action (if the file is stored in SharePoint or OneDrive) or "Get file content" action (if you have the file identifier from the uploaded form response).

      • This action will fetch the binary content of the Excel file.

    2. Convert Excel to PDF:

      • Use the "Convert file" action available in the OneDrive for Business connector. Set the file content from the previous step as the input and choose the output format as PDF.

      • If you’re using a third-party connector like Cloudmersive, you can use their Excel to PDF conversion action.

    3. Store the PDF in the Created Folder:

      • Use the "Create file" action in SharePoint or OneDrive to save the converted PDF in the folder you created earlier. Set the folder path dynamically based on the response ID.

    4. Handle Errors and Approvals:

      • Ensure that your flow includes error handling in case the file format is not supported or the conversion fails.

      • Use the approval outcome to conditionally proceed with the conversion and storage steps.

    For a detailed walkthrough, you can refer to resources below on converting Excel to PDF using Power Automate. Let me know if you need help with any specific step!

    Convert Excel Worksheet to PDF in Power Automate - Cloudmersive APIs

    How to Create PDF from Excel using Power Automate - Enjoy SharePoint

     

     If you have any further questions or need additional assistance, feel free to ask!
    Happy to help.

    Robu 1

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

Thomas Rice – Community Spotlight

We are honored to recognize Thomas Rice as our March 2025 Community…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,508 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,436 Most Valuable Professional

Leaderboard
Loading started