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 / Manual Trigger Excel A...
Power Automate
Unanswered

Manual Trigger Excel Attachment, to Word Doc Template, To PDF to Shared Email

(1) ShareShare
ReportReport
Posted on by 11

Hello - I've been working on this for a few hours, and am a bit stuck.

 

I am trying to use a standard xls template that our team uses for events to send out pdf certificates to people completing the class. We take the reporting from an event from Teams Webinars and adjust it a bit to use as the xls input file.

 

I would like to do the following:

  1. Manually select the xls file to be used with Power Automate after each event from an xls file stored in SharePoint.

        -Note: We have not found a way to take the Teams Webinar file automatically to start this process, so manual is okay for now.

  1. For each xls row, use participants data to fill out a word doc certificate to eventually be converted to pdf and emailed to the participant.

Power Automate Flow:

  1. Manually Trigger selecting the xls participant data attachment to be used
  2. Use an already created certificate template from Microsoft word stored in SharePoint using xls data for template fields created (similar to mail merge). Template fields include: Title of Event, Name of Participant, Number of Credit/CPE Hours, Date of Event
  3. Convert each individually created Word doc to PDF
  4. Save each PDF in a share point folder with name of person_eventtitle.pdf in a folder structure such as (Event_Year->Event_Month_Date)
  5. Email the certificate to the participant email from each row in the xls sheet using a shared email account.

A few of us have the Power Automate Premium License/M365 Business Premium Accounts, while the rest of our team just has the Free Power Automate and Business Basic Accounts.

 

I started this, but i keep getting errors.

cpe.jpg

 

Thanks in advance for any assistance.

Categories:
I have the same question (0)
  • SpartySteve33 Profile Picture
    11 on at

    I'm getting stuck on converting the word document to pdf, keep getting errors.

     

     

    SpartySteve33_3-1720698510385.pngSpartySteve33_4-1720698618030.png

     

    SpartySteve33_2-1720698355371.png

    How I'm calling the create PDF to the dynamic create word file location is not working. Have also tried body/ID to call it.

  • AlexEncodian Profile Picture
    4,409 Moderator on at

    @SpartySteve33 

    If you select the File via the folder icon, you'll be able to see what the input needs to look like. Probably, it needs a file path as the connector wont know which folder you're looking in

  • SpartySteve33 Profile Picture
    11 on at

    Yes, that was a major miss. Thanks for the catch on that. I thought the body/path would work.

     

    Last item i'm trying to fix is the email send from a shared mailbox.

     

    SpartySteve33_1-1720706466099.png

     

    The error in the flow is caused by using a non-Groups URI with a Group Shard. To fix the error, you should check the 'dataset' parameter in the 'CreateFile' action and ensure that it is a valid Groups URI. If it is not, you may need to update the parameter to a valid Groups URI.

  • AlexEncodian Profile Picture
    4,409 Moderator on at

    @SpartySteve33 

     

    Have you checked the parameter in the Create File action? 

     

    Could also be a bug with the new designer. Try switching to the old designer, deleting the dynamic content in the Create File / Send email actions and re-adding it.

  • SpartySteve33 Profile Picture
    11 on at
    I'm almost there for this version. I'll work to adjust/enhance more as I go from here.
     
    For some reason, when i'm importing the date from excel for the row it's putting the Date AND Time into the word template/pdf. My XLS sheet has a date format as Month Day, Year (July 27, 2004). For some reason, it's importing the time also.
     
    7/27/2024 12:00:00 AM
     
    Last item for this one. Any suggestions?

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 791

#2
Valantis Profile Picture

Valantis 568

#3
Haque Profile Picture

Haque 535

Last 30 days Overall leaderboard