none
Is there any way to set the Importance Tag (High Importance, Low Importance,etc.) programmatically in Outlook? RRS feed

  • Question

  • I know how to do this in VBA, but can't find a way to do it in the Office Add-on API.

    (I'm using the Office Developer's tools (JavaScript and HTML)).

    Thank you.


    -- Ephraim


    • Edited by EphraimF Wednesday, February 8, 2017 7:28 AM
    Wednesday, February 8, 2017 7:22 AM

Answers

  • Hi,

    Should be something like this: 

    POST https://outlook.office.com/api/v2.0/me/MailFolders/inbox/messages
    Content-Type: application/json
    
    {
      "Subject": "Did you see last night's game?",
      "Importance": "Low",
      "Body": {
        "ContentType": "HTML",
        "Content": "They were <b>awesome</b>!"
      },
      "ToRecipients": [
        {
          "EmailAddress": {
            "Address": "katiej@a830edad9050849NDA1.onmicrosoft.com"
          }
        }
      ]
    }


    Regards, Sjoukje

    Please remember to click 'Mark as Answer' on the post that helps you.

    • Marked as answer by EphraimF Monday, April 10, 2017 4:45 PM
    Thursday, February 16, 2017 10:05 AM
    Moderator