Skip to main content

Microsoft Outlook

The Microsoft Outlook node allows you to automate work in Microsoft Outlook, and integrate Microsoft Outlook with other applications. Robbot Automation has built-in support for a wide range of Microsoft Outlook credentials, including creating, updating, deleting, and getting folders, messages, and drafts.

On this page, you'll find a list of operations the Microsoft Outlook node supports and links to more resources.

!!! note "Credentials" Refer to Microsoft Outlook credentials for guidance on setting up authentication.

!!! note "Examples and templates" For usage examples and templates to help you get started, take a look at Robbot Automation's Microsoft Outlook list.

Basic Operations

  • Draft
    • Create a new email draft
    • Delete a draft
    • Get a single draft
    • Send an existing draft message
    • Update a draft
  • Folder
    • Create a new mail folder in the root folder of the user's mailbox
    • Delete a folder
    • Get a single folder details
    • Get all folders under the root folder of the signed-in user
    • Lists all child folders under the folder
  • Folder Message
    • Get all the messages in a folder
  • Message
    • Delete a message
    • Get a single message
    • Get all messages in the signed-in user's mailbox
    • Get MIME content of a message
    • Move a message
    • Create reply to a message
    • Send a message
    • Update a message
  • Message Attachment
    • Add an attachment to a message
    • Download attachment content
    • Get an attachment from a message
    • Get all the message's attachments

Example Usage

This workflow allows you to create, add an attachment, and send a draft using the Microsoft Outlook node. You can also find the workflow on Robbot Automation. This example usage workflow uses the following nodes.

  • Start Node
  • [HTTP Request](/integrations/builtin/core-nodes/Robbot Automation-nodes-base.httprequest/)

1. Start node

The start node exists by default when you create a new workflow.

2. Microsoft Outlook node (create: draft)

This node will create a draft message that we will send using the Microsoft Outlook node later in the workflow.

  1. First of all, you'll have to enter credentials for the Microsoft Outlook node. You can find out how to do that here.
  2. Select 'Draft' from the Resource dropdown list.
  3. Enter the subject in the Subject field.
  4. Enter the following content in the Body Content field.
<h1>Hello from Robbot Automation!</h1>
<p>
We are sending this email using the Microsoft Outlook node in
<a href="https://robbot.com.tr">Robbot Automation</a>
</p>
<p>Best,</p>
<p>Sender</p>
  1. Click on Add Field and select 'Body Content Type' from the dropdown list.
  2. Click on Save to run the node.

3. HTTP Request node (GET)

This node will fetch the logo of Robbot Automation from a URL. We will attach this file to our draft message that we created earlier. If you want to attach a different file, enter the URL of that file instead.

  1. Select 'File' from the Response Format dropdown list.
  2. Click on Save to run the node.

4. Microsoft Outlook1 node (add: messageAttachment)

This node will attach the file that we received from the previous node to the drat message we created using the Microsoft Outlook node.

  1. Select the credentials that you entered in the previous Microsoft Outlook node.
  2. Select 'Message Attachment' from the Resource dropdown list.
  3. Click on the gears icon next to the Message ID field and click on Add Expression.
  4. Select the following in the Variable Selector section: Nodes > Microsoft Outlook > Output Data > JSON > id. You can also add the following expression: {{$node["Microsoft Outlook"].json["id"]}}.
  5. Click on the Add Field button.
  6. Click on Save to run the node.

5. Microsoft Outlook2 node (send: draft)

This node will send the draft message that we created using the Microsoft Outlook node to a recipient.

  1. Select the credentials that you entered in the previous node.
  2. Select 'Draft' from the Resource dropdown list.
  3. Select 'Send' from the Operation dropdown list.
  4. Click on the gears icon next to the Message ID field and click on Add Expression.
  5. Select the following in the Variable Selector section: Nodes > Microsoft Outlook > Output Data > JSON > id. You can also add the following expression: {{$node["Microsoft Outlook"].json["id"]}}.
  6. Click on the Add Field button.
  7. Enter the recipient's email address in the Recipients field.
  8. Click on Save to run the node.