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 / Trying to format a num...
Power Automate
Answered

Trying to format a number within an "Append to Array" action

(0) ShareShare
ReportReport
Posted on by 150

Hello. I am stuck trying to format an amount in an array to will be populated in repetitive rows of a word template. This formating works well for columns in the header (non repetitive), but for the repetitive rows it does not work either in the "Append to Array" action (first image),

Gilles12_2-1699289183818.png

or if I insert a Compose action to do the formatting before (second image with error message at the top). 

Gilles12_1-1699289064946.png

Thanks if ever you have an idea or the solution...

Categories:
  • Verified answer
    Matthy79 Profile Picture
    4,188 Super User 2024 Season 1 on at

    You have to use expressions (next to dynamic content) to use formatnumber. If you just type the formula that way it will be recognized as normal text and this breaks the json.

     

    And it will be much better to use a select action instead of „apply to each“ and append to array.

  • Gilles12 Profile Picture
    150 on at

    Thanks, yes sorry I did not mention that I tried with an expression as well initially, similarly to what I have done for the total invoice in the footer. But for the line items I was still getting the error message (see image), and I don't understand why it fails in the template population, while the normal columns (in green) are recognized, so why it does not accept expressions (the flow works well without)... I will try with the Select action, thanks for the heads up!

    Gilles12_0-1699346589202.png

     

  • Gilles12 Profile Picture
    150 on at

    The Select action worked very well, thank you very much!

    Gilles12_0-1699350576744.png

     

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 July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 227 Super User 2026 Season 2

#2
David_MA Profile Picture

David_MA 213 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 151

Last 30 days Overall leaderboard