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 / Formatnumber expressio...
Power Automate
Answered

Formatnumber expression can't be a variable or value from Microsoft Form ?

(0) ShareShare
ReportReport
Posted on by 173

Hello,

 

i try to convert number to money

 

if i write 13000, i want 13 000€

 

the expression : formatNumber(variables('rem'),'### ###€')

 

Capture.JPG

 

error details : Unable to process template language expressions in action 'Initialize_variable_2' inputs at line '0' and column '0': 'The template language function 'formatNumber' expects its first parameter to be an integer or a decimal number. The provided value is of type 'String'. Please see https://aka.ms/logicexpressions#FormatNumber for usage details.'.

Categories:
I have the same question (0)
  • Verified answer
    Pstork1 Profile Picture
    69,121 Most Valuable Professional on at

    make the variable type a number or put the variable inside a value() function to cast it to a number when using it.  You can't use FormatNumber() on a string. It has to be a number of some kind.

  • GreguS Profile Picture
    173 on at

     thank you for your reply @Pstork1 

     

    but i don't understand how to convert to number, i don't find a expression value

  • Pstork1 Profile Picture
    69,121 Most Valuable Professional on at

    Sorry, my brain was thinking Power Apps.  For Power Automate you need Float() to convert a decimal number and int() to convert an integer.

  • GreguS Profile Picture
    173 on at

    i have found this and it's good for variable, i don't know if it's possible with my form

  • GreguS Profile Picture
    173 on at

    I have use this : formatNumber(int(outputs('Get_response_details')?['body/r951198f4776b49bfa11c7446eac83bd2']),'### ###€') for convert number to money

     

    but now i have a new error for populate my sharepoint list ...

     

    The 'inputs.parameters' of workflow operation 'Create_item' of type 'OpenApiConnection' is not valid. Error details: Input parameter 'item/R_x00e9_mun_x00e9_ration' is required to be of type 'Number/double'. The runtime value '"18 000€"' to be converted doesn't have the expected format 'Number/double'.

     

     

     

  • Pstork1 Profile Picture
    69,121 Most Valuable Professional on at

    Use Float() in place of int(). The input needs to be a floating point number not an integer.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 589

#2
Valantis Profile Picture

Valantis 328

#3
David_MA Profile Picture

David_MA 284 Super User 2026 Season 1

Last 30 days Overall leaderboard