cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
CrispinF
Level: Power Up

Translate step after Send an email step failed to find the email body

My Flow starts with an "when an http request is received" wit the post body containing several properties. Then it sends an email using Office 365 putting these properties variously into subject line and body. All works fine.  I then add a Translator step (using Microsoft Translator), after the email, and use as input the Body from the "Send an Email" step.  I then add another step to send an email with the translation result in the body, but it comes out blank.  I tried setting the first email step synchronous but that made no difference.

If I move the translate step earlier I can translate individual properties of the initial payload no problem. It only seems to fail to find the assembled email body (which is an expression along these lines:

 
"body": {
            "To": "xxx@xxx.com;@{triggerBody()?['AssignedUserEmail']}",
            "Subject": "Task @{triggerBody()?['TaskId']} created by @{triggerBody()?['CreatedByCsUserName']}",
            "Body": "Task Id: @{triggerBody()?['TaskId']} was created by @{triggerBody()?['CreatedByCsUserName']}\n\nDescription: @{triggerBody()?['Description']}\n\nAssigned to: @{triggerBody()?['AssignedUserFullName']}\n\nRecord type: @{triggerBody()?['EntitySingularName']}\n\nRecord UID:  @{triggerBody()?['RecordId']}\n\nTarget date: @{formatDateTime(triggerBody()?['TargetDate'],'D')} \n",
 

Any ideas? Bug?

1 REPLY 1
Community Support Team
Community Support Team

Re: Translate step after Send an email step failed to find the email body

Hi @CrispinF ,

 

Could you share a screenshot of the Flow configuration?

Please try using Html to text to get the plain text content of email body first.

Then fill the Dynamic content of the Html to text output in Microsoft Translator.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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,413)