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 and Office | Development | Office JavaScript API
Microsoft 365 and Office | Install, redeem, activate | For business | Windows
0 comments No comments
{count} votes

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.