cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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
Memorable Member
Memorable Member

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!

View solution in original post

2 REPLIES 2
Memorable Member
Memorable Member

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!

View solution in original post

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
PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Top Solution Authors
Users online (7,152)