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 / Append to array with f...
Power Automate
Answered

Append to array with file content from DOCTYPE HTML not working

(0) ShareShare
ReportReport
Posted on by 27

Hello all,

 

I have a flow that goes into different folders in a SharePoint library and sends the files from there per email. It is working very well, until there is an HTML file in the folder. Then I receive an error for this file in append to array:

 

"InvalidTemplate. Unable to process template language expressions in action 'Append_to_array_variable' inputs at line '0' and column '0': 'The template language expression 'base64ToBinary(body('Get_file_content')['$content'])' cannot be evaluated because property '$content' cannot be selected. Property selection is not supported on values of type 'String'. Please see https://aka.ms/logicexpressions for usage details.'."

I also noticed that in Get file content action there is a failure for the HTML file.

I am not sure how to proceed here. Would you please advise if it's possible to append these html files also. Thanks

 

1.png

3.png2.png

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

    Hi @liniv ,

     

    Please try this:

    body('Get_file_content')

    vmengmlimsft_0-1706774727406.png

     

     

    Best regards,

    Rimmon

  • liniv Profile Picture
    27 on at

    It worked, thank you very much!

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 223

#2
David_MA Profile Picture

David_MA 195 Super User 2026 Season 1

#3
Haque Profile Picture

Haque 167

Last 30 days Overall leaderboard