Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
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

  • liniv Profile Picture
    27 on at
    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 at
    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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1