[Send an Email V2] action in Copilot Studio Agent does not composing e-mail body with dynamic content / variables

LI MING KIT 15 Reputation points
2025-06-16T01:52:32.91+00:00

Hi!

I am experiencing an issue on [Send an email V2] action in my Copilot Studio Agent. I have built an agent that provides self-help supports to the users, and only escalate it as an e-mail to support team when the agent was not able to answer based on [Generative Answers] and the defined knowledge base.

Until Jun 12, 2025, the [Send an email V2] action was able to compose the [To:], [Subject:] and [Body:] with dynamic contents (e.g.: System.User.DisplayName) and variables (e.g.: Global.varTicketType).

The actual result was looking fine like Original result which works well

The configuration was that, under [Body:], I used [fx] to compose my desired e-mail body, for example:

Concatenate("A ticket has been raised through the Agent by:<br>",System.User.DisplayName,"<br>Ticket Type: ", Global.varTicketType, "<br>Issue reported:<br>, Global.varUserReportedContent)

The above was working well under many tests which e-mails were generated correctly with the desired variables and system details. Unfortunately on Jun 13, 2025, I observed the [Send an email V2] action card looks a bit different, and the code I used (example as above) disappeared from the [Body:]. After I re-enter the code and test it, the e-mail generated is no longer pulling these dynamic contents / variables, but only displaying the code itself as a string.

Where I used to put the code of email body

Can anyone help me on understanding what has been changed, and what should be the new / correct way to create such e-mail with dynamic contents? I have tried many suggestions by Copilot but unfortunately nothing works so far.

Thank you!

Microsoft Copilot | Other
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Ayush Giri 245 Reputation points Microsoft External Staff
    2025-06-19T04:08:18.9166667+00:00

    Hi @LI MING KIT ,
    Since June 13, 2025, the “Send an email V2” action in Copilot Studio no longer evaluates expressions like Concatenate(...) directly in the Body field—these are now treated as plain text. To fix this, use a separate Compose action or Set Variable step before the email to build the dynamic content, and then insert the output into the email body using dynamic content. This restores the previous behavior where variables like System.User.DisplayName or Global.varTicketType are correctly rendered in the email.
    Thanks Ayush,

    If the response is helpful, please click "Accept Answer" and upvote it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate. 


  2. LI MING KIT 15 Reputation points
    2025-06-26T02:47:15.9266667+00:00

    As an update, we have eventually reached out to Microsoft Support through Admin Center and it has been identified as an issue being resolved. Hopefully anyone seeing this post later will no longer face the same issue.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.