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 / formula/expression bea...
Power Automate
Answered

formula/expression beautifier indenting

(0) ShareShare
ReportReport
Posted on by 71

Anyone found an online tool for beautifying messy formula expressions? You know, with proper indenting to make it more readable?  I'm aware of the helpful indenting in the editor when you type an expression- each time you press enter, it indents properly.  But I'm often typing in another editor, or copying/pasting, or too lazy to use the editor properly.  

 

I want to turn this:

SJacobs_1-1631388280000.png

 

Into this:

SJacobs_0-1631388189292.png

 

 

Categories:
I have the same question (0)
  • Verified answer
    Ellis Karim Profile Picture
    12,046 Super User 2026 Season 1 on at

    As the Power Fx language used in Power Apps and Power Automate is based on Microsoft Excel, all I can suggest is that you try the Excel Formula Beautifier site Online Excel Formula Beautifier:

     

     

    if(or(empty(triggerOutputs()?['body/LatLong']), equals(triggerOutputs()?['body/LatLong'], ',')),'25.35342762,55.43085479',triggerOutputs()?['body/LatLong'])

     

     

    ekarim2020_2-1631394459765.png

    Just remove the equals sign from the Beautifier then paste into Power Automate.


    Ellis
    ____________________________________
    If I have answered your question, please mark the post as Solved.
    If you like my response, please give it a Thumbs Up.

  • SJacobs Profile Picture
    71 on at

    Thanks ekarim2020 - that's just what I was looking for.  I tried nearly every programming language I could think of, but not came out as well formatted as that one.  

    PREVIEW
     
     
     

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 711

#2
Vish WR Profile Picture

Vish WR 691

#3
Haque Profile Picture

Haque 525

Last 30 days Overall leaderboard