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 / Power Automate Append ...
Power Automate
Answered

Power Automate Append Variable to Array

(0) ShareShare
ReportReport
Posted on by

Hi,

 

I am trying to append variabe to array by doing a control "do until" by getting the attachments of the emails and append it to an array by doing the below:

{
"content": {
"$content-type": @{items('Append_To_Array_Approval_Attachment_Variable')?['contentType']},
"$content": @{items('Append_To_Array_Approval_Attachment_Variable')?['contentBytes']}
},
"Name": @{items('Append_To_Array_Approval_Attachment_Variable')?['name']}
}

 

and i am using this array in the attachment for a wait for approval however the attachment are always corrupted and cant be opened and i noticed the content bytes are showing "null:

 

I am attaching some screenshots to give more details..

 

thanks in advance.

 

Categories:
I have the same question (0)
  • Verified answer
    v-yetonggu-msft Profile Picture
    Microsoft Employee on at

    Hi @najwan ,

    Please recreate the flow, and when the When a new email arrives trigger is created, go to the classic designer.

    Then build the remaining steps.

    Like this:

    vyetonggumsft_0-1715931616964.png

    vyetonggumsft_1-1715931658396.png

    vyetonggumsft_3-1715931747988.png

    Please check this test:

    My Flow Overall Preview:

    vyetonggumsft_0-1715930795287.png

    My Flow Parameters Configuration:

    vyetonggumsft_2-1715930930290.png

    vyetonggumsft_3-1715930957573.png

     

    {
     "Name":,
     "ContentBytes":
    {
    "$content-type":,
    "$content":
    }
     }

     

    vyetonggumsft_4-1715931027698.png

    My Outlook Inbox:

    vyetonggumsft_5-1715931060229.png

    Best Regards,

    Sunshine Gu

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 785

#2
Valantis Profile Picture

Valantis 669

#3
Haque Profile Picture

Haque 563

Last 30 days Overall leaderboard