As you know whatever we write in the subjects gets repeated in the body. Is there any way to stop that? I don't want my subject in the body.
As you know whatever we write in the subjects gets repeated in the body. Is there any way to stop that? I don't want my subject in the body.
Did you manage to try the solution above and actually get it to work? Can you share your results? Thanks.
I have tried your examples, but the outcome is an email that do not have have the 'Submit' button and can't perform any action. I guess we can't just directly reuse the Teams AdaptiveCard output from the 'Create an Approval' action in the body of an email. At the minimum, there needs to be able to set the Originator ID of the Adaptive Card.
Loved it. Thanks..!!!
Hi @zmansuri,
As far as I am aware you cannot configure this in the settings of the out of the box Approval action like Start and wait for an Approval. Unfortunately, the title will appear by default in the body of the e-mail 😞
As a workaround you could use the Create an Approval action. This action will output the Teams Adaptive Card json.
You could manipulate that json with a replace function and post your it in your own Send an Email (v2) action.
Below is an example
1. Use a Create an approval. Make sure you disable notifications
2. Use a Send an email. Switch to code view and and HTML code (including an expression which uses an adaptiveCard with a replace function. That function looks for the Title and replaces it by an empty string value).
<script type="application/adaptivecard+json">@{replace(outputs('Create_an_approval')?['body/adaptiveCard'], outputs('Create_an_approval')?['body/title'], '')}</script>
Below is a test example e-mail without the Title in the body.
Michael E. Gernaey
497
Super User 2025 Season 1
David_MA
436
Super User 2025 Season 1
Riyaz_riz11
244
Super User 2025 Season 1