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

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
    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

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

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard