Please can i have some help

Hey! I am struggling to get the outlook to output certain text in bold. How can i do this please? It seems none of my previous nodes have HTML and i don’t know how to change this.

Describe the problem/error/question

What is the error message (if any)?

Please share your workflow

Share the output returned by the last node

Information on your n8n setup

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

The Microsoft Outlook node allows you to crate a draft using HTML formatting, but unfortunately it’s not well described here.

There is another option under Additional Fields that allows you to set the Message Type and that should be set to HTML. Then it’s possible to add HTML formatting (like bold: <b>bold</b>) to your message like below:

:folded_hands: mark this as solved if you think this solved your problem!

Thanks Gede. I have managed to locate when you suggested. However i can’t edit the previous nodes into HTML and the outlook node is using previous inputs for the text of the email.

set the Message field as Expression and you can drag and drop your input in your template, for example your message can be

Hello <strong> {{$json.name}}</strong>
<p> {{$('some node').json.text}}

You can usually use HTML tags in the output like */ etc.

So you have a couple of options:

  1. Add HTML formatting to the Edit Fields Node.
  2. Insert the HTML tags in the Outlook create draft node.

Add HTML formatting to the Edit Fields Node.

Your Current Edit Fields node appears to insert some dynamic values into the body like this:

Hi, 

My name is Harry. I noticed that {{ $json['Company name'] }} doesn't have an AI chatbot on it's website. 

Instead, what you could do is insert some html tags at this step like this:

<p>Hi,</p> 

<p>My name is Harry. I noticed that <b>{{ $json['Company name'] }}</b> doesn't have an AI chatbot on it's website. </p>

Adding HTML tags in the Outlook create draft node

This keeps the data in the fields simpler but adds the templating into the Outlook node (which I think is cleaner).

:warning: Don’t forget to mark this a solved if you think this solves your problem!