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 / PAD Mail Merge with At...
Power Automate
Answered

PAD Mail Merge with Attachments

(0) ShareShare
ReportReport
Posted on by 9
Power Automate Cloud works well with the Mail Merge with Individual Attachments and Send Email process.
 
Is it possible to perform same within Power Automate Desktop? Have tried a few options, but had errors when replicated into Power Automate Desktop especially when including the attachments
I have the same question (0)
  • Suggested answer
    VishnuReddy1997 Profile Picture
    2,656 Super User 2025 Season 2 on at
     
    Yes, it's possible to perform a Mail Merge with individual attachments and send personalized emails using Power Automate Desktop (PAD).
     
    Please share the screenshot of the flow,so we can help better.
     
    Regards,
    Vishnu Reddy
  • HK-16060439-0 Profile Picture
    9 on at
     
    Appreciate the feedback. Attached the flow screenshot, hope this helps.
     
     
     
    Regards,
    HK
  • Verified answer
    Riyaz_riz11 Profile Picture
    3,874 Super User 2025 Season 2 on at
    Hi,
     

    Step 1: Read Mail Merge Data

    • Use "Read from Excel Worksheet" (with first row as header)

    • Output to emailList (data table)

     Step 2: Loop Through Each Recipient

    For Each item in emailList

    Inside the loop:

    Step 3: Generate Personalized Document (Mail Merge or String Replace)

    Option 1: Use Word Replace (if fields like <<Name>> in template)

    • Launch Word

    • Open Word Document

    • Replace Text in Document (e.g., <<Name>> → item["Name"], <<Date>> → etc.)

    • Save As New File (e.g., C:\Temp\Mail_Merge_${item["Email"]}.docx)

    • Convert to PDF (Optional for attachment)

    OR

    Option 2: Use Word Mail Merge via VBS (advanced)

    Let me know if you want a pre-built VBS script to handle merge fields automatically.

     Step 4: Attach File Based on User

    • Determine the personalized file path:

    attachmentPath = "C:\Temp\Mail_Merge_" + item["Email"] + ".pdf"
     

     Step 5: Send Email with Outlook

    • Use "Send Email Message (Outlook)" action

      To: item["Email"]

      • Subject: "Your Personalized Document"

      • Body: "Hi " + item["Name"] + ", please find attached..."

      • Attachment: attachmentPath

        If I have answered your question, please mark it as the preferred solution ✅ . If you like my response, please give it a Thumbs Up 👍.
        Regards,
        Riyaz

         

  • HK-16060439-0 Profile Picture
    9 on at
     
    Appreciate the guidance.
     
    My excel list contains the follow following columns Name, ID, Email & Attachment Name. The PDF attachment is specific (confidential) for the User and must not be received by any other user. All attachments are stored in the same folder.
     
    Per the attached flow screenshot, the mail merge works OK, however it fails when including the attachment with error message - Parameter 'Attachments': Argument 'Attachments' must be 'List of Custom objects'
     
    Hope this clarifies for a refined suggestion.
     
     
    Regards,
    HK
  • HK-16060439-0 Profile Picture
    9 on at
    Hi @Riyaz_rizz11,
     
    I have tried further your solution but still getting similar error message as mentioned earlier.
     
    Please refer my earlier response.
     
     
    Regards,
    HK

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 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard