Using Microsoft Graph REST API, we create an Outlook calendar event
Focus on the body
attribute:
{
...,
"body": {
"contentType": "text",
"content": "Test\n\nTest"
}
}
We would expect the event's description, as shown in Outlook Calendar and in Teams Calendar (Microsoft Teams > Calendar tab), to then be:
Test
Test
This is the case in Outlook calendar (outlook.com). However, in Teams Calendar, it displays as:
Test Test
We've also tried \r\nTest\r\n\r\nTest\r\n
with the same result.
How can we have linebreaks in the description/body of the event we create, correctly displayed in Outlook and Teams?