Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Format number action output cannot be used in approval

(0) ShareShare
ReportReport
Posted on by 14

Dear community,

 

I am running into an issue that I cannot solve.

 

I use a Format Number action to ensure that numbers are looking nice in the approval Email.

 

However, the flow keeps failing with the following message when it try to create the approval: Unable to process template language expressions in action 'Start_and_wait_for_an_approval_2' inputs at line '1' and column '2924': 'The template language expression 'body('Format_number_-_Current_Credit_Limit')?['body']' cannot be evaluated because property 'body' cannot be selected. Property selection is not supported on values of type 'String'.

 

Here is the output from the Format number action:

Capture.JPG

 

I really do not understand why the error message mentions a string as this is clearly recognized by Format number as a number and also property formatted.

 

Where is the error?

 

Regards,

 

Oliver

  • Oliver_Germany Profile Picture
    14 on at
    Re: Format number action output cannot be used in approval

    Hi @v-alzhan-msft , 

     

    Thanks for the hint, it works as intended.

     

    Just one more question:

    I tried to figure out why the expression has changed.

     

    I have a multi-stage approval process, in which basically the same Email is send to approves further down the chain. I tried to save time and copy-pasted the first Email in to latter ones. Doing so changes the expression from 'outputs' to 'body'.

     

    Is this correct?

  • Verified answer
    v-alzhan-msft Profile Picture
    on at
    Re: Format number action output cannot be used in approval

    Hi @Oliver_Germany ,

     

    The  expression 'body('Format_number_-_Current_Credit_Limit')?['body']' is wrong.

     

    The expression of the Format number action output should as below:

    outputs('Format_number_-_Current_Credit_Limit')?['body']

    1.png

    Please take a try.

     

    Best Regards,

    Alice

     

    Community Support Team _ Alice Zhang
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

  • IRQ16 Profile Picture
    15 on at
    Re: Format number action output cannot be used in approval

    Would you mind sharing your Flow so we can see what you’re trying to build?

  • Oliver_Germany Profile Picture
    14 on at
    Re: Format number action output cannot be used in approval

    Hi,

     

    Okay, this explains the error.

     

    But why can't I use the action in an approval? Is there any work-around?

     

     

  • IRQ16 Profile Picture
    15 on at
    Re: Format number action output cannot be used in approval

    Hey Oliver, the Format Number action is outputting as a String hence the error you're experiencing. The formatNumber() function also outputs as String, too.

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