HTML format for personalNotes of contacts

Ulrich Winter 40 Reputation points
2023-02-07T16:28:37.0966667+00:00

In general, HTML formatted strings can be used when updating the personalNotes of a contact via the Graph API. But there is a problem with URLs.

Example:

POST https://graph.microsoft.com/v1.0/me/contacts     
{
    "givenName": "Test",
    "surname": "Test",
    "personalNotes": "External link to the contact <a href="some url">contact</a>"
}

The result is, that the link is not clickable and the HTML formating is lost.

Any suggestions on how to solve this?

Microsoft Security | Microsoft Graph
0 comments No comments
{count} votes

Accepted answer
  1. Anonymous
    2023-02-08T10:00:18.7166667+00:00

    Hi @Ulrich Winter ,

    Thanks for reaching out!

    It is an expected behavior that the hyperlink/rich text/formatted text is not supported in Contact Notes since the type of this field is string. You can verify the same from UI by creating a new contact in OWA and try to add a hyperlink in contact notes field, it will soon be converted into a plain text. personalnoteslink

    Hope this helps.

    If the reply is helpful, please click Accept Answer and kindly upvote it. If you have additional questions about this answer, please click Comment.

    0 comments No comments

0 additional answers

Sort by: Most helpful

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.