web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Format number action o...
Power Automate
Unanswered

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

Categories:
I have the same question (0)
  • IRQ16 Profile Picture
    15 on at

    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.

  • Oliver_Germany Profile Picture
    14 on at

    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

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

  • Verified answer
    v-alzhan-msft Profile Picture
    on at

    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.

  • Oliver_Germany Profile Picture
    14 on at

    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?

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard