Accessing mailbox properties in earlier versions of OfficeJs

Meine Zeinstra 0 Reputation points
2023-05-04T07:59:00.26+00:00

Hey everyone,

I'm developing an Outlook Add-In using the web-client as test environment. This means (or seems like it anyway) that I'm using the latest version of Office JS API. I've been looking into the documentation of the Office Javascript API and found that some properties are only available from a certain version and above.

I may be able to test on older version, but I'm not sure where/how I should do that. Anyway, that's not really the question. I'm wondering how the API handles these properties. Are they just undefined/null? Does the API throw an error when accessing it? Does it have the getAsync method (incase it's viewable with getAsync ), but just returns null/undefined?

Specifically I'm talking about Office.Recurrence interface which is only available in 1.7 and above. So, Imagine you're on 1.6 because you're using Outlook 2019 or lower.

Thanks a lot for your time!

Microsoft 365
Microsoft 365
Formerly Office 365, is a line of subscription services offered by Microsoft which adds to and includes the Microsoft Office product line.
4,069 questions
JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
909 questions
0 comments No comments
{count} votes