Showing results for 
Search instead for 
Did you mean: 
Advocate I
Advocate I

email attachments content: expression used for content changes from output to body

I've had this happen frequently enough to convince me it's a bug and not something I've caused to happen.


How to recreate this effect:


1) Create any action that results in an output for which the following expression is a valid "attachments content" parameter in the Send Email action:  outputs('action_name')?['body']

2) Create a Send Email action.  use the output from the previous action in the "attachments content" parameter

3) Run the flow, assume it works without error.

4) Edit the flow.  I can't say exactly what to edit that causes this error.

5) Save and run the flow again.  

6) An error occurs on the action "Send Email".  Error Details: "Parameter 'Attachment Content' cannot be null or empty."

7) Edit the flow and observe that the "attachments content" parameter has changed from outputs('action_name')?['body'] to  body('action_name')?['body']


Screenshots of the flow and error:









Helpful resources

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.

Power automate tips 768x460 v2.png

Restore a Deleted Flow

Did you know that you could restore a deleted flow? Check out this helpful article.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Top Solution Authors
Top Kudoed Authors
Users online (1,395)