cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
SJacobs
Advocate I
Advocate I

formula/expression beautifier indenting

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

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
ekarim2020
Super User
Super User

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.

View solution in original post

2 REPLIES 2
ekarim2020
Super User
Super User

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.

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
 
 
 

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Users online (2,768)