web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Appending an attachmen...
Power Automate
Unanswered

Appending an attachment variable to an attachment array variable

(0) ShareShare
ReportReport
Posted on by 6

I have generated PDF document using the compose / replace function and put this value in a variable, what I then need to do is to append this variable to another array variable that contains PDF attachments.

 

This is the variable from the generated PDF

 

xavierc_0-1647509992861.png

 

and this is the variable of the attachments that come from Microsoft forms.

 

 

xavierc_1-1647510078401.png

 

What I want is to able to attach these variables into one email.

 

xavierc_2-1647510173617.png

 

I have tried to append to variable and I get the ContentByte not supported in the send email action

 

 

 

Categories:
I have the same question (0)
  • Riyaz_riz11 Profile Picture
    3,844 Super User 2025 Season 2 on at
    Re: Appending an attachment variable to an attachment array variable

    Hi @xavierc 

    Please refer this see in mail better you can send 

    Ahammad_Riyaz_0-1647511131341.png

    Ahammad_Riyaz_1-1647511303922.png

    Here body refers, file content body.

     

    Regards

    Ahammad Riyaz

    --------------------------------------------------------------------------------
    If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

     

  • xavierc Profile Picture
    6 on at
    Re: Appending an attachment variable to an attachment array variable

    Hi @Ahammad_Riyaz ,

    The type of content am using are arrays, The first variable contains one PDF and the other variable contains multiple PDF files.

     

     

  • v-LilyW-msft Profile Picture
    on at
    Re: Appending an attachment variable to an attachment array variable

    Hi @xavierc 

    If you want to attach a PDF file with other files uploaded from Forms as email attachments, you just need to initialize an array variable, first append the name and content of the created file to this variable, and then continue to append the files uploaded by Forms to this variable, finally fill this variable into the attachment field in Send an email action.

    You can refer to below screenshots:

    vLilyWmsft_0-1647581959812.png

    vLilyWmsft_3-1647582104913.png

    vLilyWmsft_4-1647582171906.png

    vLilyWmsft_5-1647582227787.png

    vLilyWmsft_6-1647582260834.png

    When a new response is submitted with pdf file, the recipient will receive an email with multiple attachments

    vLilyWmsft_7-1647582342064.png

    Hope the content above may help you.

    Best Regards

  • xavierc Profile Picture
    6 on at
    Re: Appending an attachment variable to an attachment array variable

    Hi @v-LilyW,

     

    I tried appending to my variable as shown below,

     

    xavierc_1-1647693692049.png

     

    And this is the result that I got

     

    xavierc_0-1647693571915.png

     

     

     

     

  • Verified answer
    v-LilyW-msft Profile Picture
    on at
    Re: Appending an attachment variable to an attachment array variable

    Hi @xavierc 

    Please check the configuration of ‘Append to array variable’ action in Apply to each, as shown below:

    vLilyWmsft_0-1647825704254.png

    Best Regards.

     

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
Tomac Profile Picture

Tomac 497 Moderator

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 477 Super User 2025 Season 2

#3
chiaraalina Profile Picture

chiaraalina 242

Last 30 days Overall leaderboard