cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Scott_Whittier
Level: Powered On

What is the expected output?

I'm building a flow to parse an email and use portions of the content to generate a new email. It starts with a "When new email arrives trigger" which I then use the "HTML to Text" conversion on. This works and I see the plain text output of the email. The next step is a Compose which uses this expression:

 

length(body('Html_to_text'))

When the flow runs I get the same thing as an output

length(body('Html_to_text'))

That isn't what I expected. Is this right?

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: What is the expected output?

Hi @Scott_Whittier

 

If you typed the expression properly in the Expressions tab, the Compose Output should be a number. Please make sure the expression in your Compose action is exactly as the screenshot below.

ComposeOutput.png

Please do not hesitate to reach out if you have any questions.


Fausto Capellan, Jr


Did I answer your question? Mark my post as a solution! Did my response help? Please give it a thumbs up!

Proud to be a Flownaut!


View solution in original post

2 REPLIES 2
Super User
Super User

Re: What is the expected output?

Hi @Scott_Whittier

 

If you typed the expression properly in the Expressions tab, the Compose Output should be a number. Please make sure the expression in your Compose action is exactly as the screenshot below.

ComposeOutput.png

Please do not hesitate to reach out if you have any questions.


Fausto Capellan, Jr


Did I answer your question? Mark my post as a solution! Did my response help? Please give it a thumbs up!

Proud to be a Flownaut!


View solution in original post

Scott_Whittier
Level: Powered On

Re: What is the expected output?

The key was "If you typed the expression properly in the Expressions tab...". I don't know how or when the expression got mangled but when I looked back at it today I found that it was not the same as what I posted. Fixed the expression and it ran like a champ. Thank you!

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (5,323)