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 : vegJYvGOI+sjYd/Em0iNhT
Power Automate - Building Flows
Answered

Append to array with file content from DOCTYPE HTML not working

Like (0) ShareShare
ReportReport
Posted on 1 Feb 2024 07:30:13 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

I have the same question (0)
  • liniv Profile Picture
    27 on 01 Feb 2024 at 08:27:57
    Re: Append to array with file content from DOCTYPE HTML not working

    It worked, thank you very much!

  • Verified answer
    v-mengmli-msft Profile Picture
    on 01 Feb 2024 at 08:05:53
    Re: Append to array with file content from DOCTYPE HTML not working

    Hi @liniv ,

     

    Please try this:

    body('Get_file_content')

    vmengmlimsft_0-1706774727406.png

     

     

    Best regards,

    Rimmon

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 786 Moderator

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 724 Super User 2025 Season 2

#3
stampcoin Profile Picture

stampcoin 290 Super User 2025 Season 2

Last 30 days Overall leaderboard
Loading complete