cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Scott_Whittier
Regular Visitor

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
Regular Visitor

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
MBAS Gallery 2020

MBAS Gallery 2020

Watch Microsoft Business Applications Summit sessions on-demand.

firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Automate Community!

firstImage

Now Live: Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

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

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Users online (5,691)