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 / SP autocalculated colu...
Power Automate
Answered

SP autocalculated column shows many decimals on workflow email, variable in a apply to each

(0) ShareShare
ReportReport
Posted on by 32

Hi, I'm building this flow that has an autocalculated column in SP, an email is sent with that information through the workflow, however, it shows a bunch of decimals, I found a way to fix it, creating a string variable, then a format number using a float. However, the variable is being put into an apply to each since the workflow goes through several items to determine which one needs an email (I have get items at the beginning). Of course, I get an error because the initialize variable cannot be nested in an apply to each, how can I solve this? Thanks!!!!

 

age rounding.PNG

Categories:
I have the same question (0)
  • Verified answer
    wskinnermctc Profile Picture
    6,519 Moderator on at

    You can Initialize Variable before all of your steps in a flow and leave it blank.

     

    You use the "Set Variable" to set what the value in the variable will be in different parts of your flow.

     

    wskinnermctc_0-1693934795311.png

     

  • ManishSolanki Profile Picture
    15,091 Super User 2025 Season 2 on at

    Hi @JeanPaul 

     

    Pls initialize the variable outside the loop before "Apply to each" action. Use "Set variable" action to get the value in each iteration.

     

    If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.

     

    Thanks

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 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard