I am developing an outlook add-in for Mac OS using OfficeJs API.
As per the requirement, I am using Office.context.mailbox.displayNewAppointmentForm()
method to open an Appointment window programmatically, on the click of the button.
Office.context.mailbox.displayNewAppointmentForm(
{
location: '{Location}',
subject: '{subject}',
body: '{some large text}'
});
If the body
text is 255 characters or less, then the appointment window gets opened with the pre-populated body, subject, and location. But if the body text exceeds that size, no appointment window is opened.
I know that there is a limit of 32KB for the appointment form's body
but my text is not more than that. (I have confirmed it on a character to KB converter).
If I add a subject and the text of Subject exceeds more than 255 characters (specified in API documentation), It gives an exception.
But for the body, it gives no exception to characters more than 255 and does not open new Appointment window.
IMPORTANT UPDATE: As this is office add-in and it works on Windows platform as well. It works as expected for Windows and the text renders perfectly. So, it seems it is a bug for Mac!
Link of Demo Code: https://drive.google.com/file/d/1NoWfxd8p3kYQ1AkRXtE0DS4NmyN4PmiY/view