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
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (4,398)