Closed amegan closed 7 months ago
@amegan Are you seeing this issue in Classic Mac Outlook or New Mac Outlook UI?
@exextoc I see the issue in Classic Mac Outlook.
I tried to run the same code in New Mac Outlook and seems even worse. With or without pinned side panel setting, It always returns "Permission Denied" error.
We are able to repro this issue in Classic Mac Outlook. In new Mac Outlook, this error is shown because 1.8 APIs are not available in Production yet and will be made available in May. Currently, 1.8 API set is available in Insiders Fast build. We recommend that you test the API in the latest Insiders version and let us know if the issue gets resolved.
@exextoc ah, ok. I see Office.context.requirements.isSetSupported('Mailbox', '1.8')
returns false in Outlook new UI. We can gracefully fallback with that response.
We are dealing with the behavior in the classic mac outlook. It returns Office.context.requirements.isSetSupported('Mailbox', '1.8')
true but masterCategories.getAsync()
API fails only if the side panel is pinned. Is there anything we can do with it?
Could you try if this works in the Insiders beta build for New UI. We will be releasing it soon in production, so if this resolves your issue that is great.
@exextoc I verified category api starts working on insider fast outlook client in New UI. Do you have a plan to fix the issue in Old UI? We can't ask users to use New UI because of https://github.com/OfficeDev/office-js/issues/1616 .
Thank you for confirming that this works well in the New Outlook for Mac - it will be available in prod by mid May. While we have noted down the Old UI bug, old UI bugs are lower in priority and hence we may not be able to pick it up.
Office.context.mailbox.masterCategories.getAsync() returns code: 5001, "Internal Error" if I call the API with side panel pinned on Mac Outlook. If the side panel is NOT pinned, it returns the list of categories.
Expected Behavior
The API always returns the list of categories.
Current Behavior
The API returns the list of categories only if the side panel is not pinned.
Steps to Reproduce, or Live Example
Link to scriptlab: https://gist.github.com/amegan/6ae9f63650e67e027b8a4084fecbe3b2
The same script lab code returns the list of categories if the side panel is not pinned but it starts returning the error if the side panel is pinned. Once the API starts returning the error, it keeps returning the error regardless of the pinned setting. Need to reopen the side panel to make the API work again.
Context
We attach the category to the opened email with the user action but this feature only works if the side panel is not pinned. We want to provide consistent behavior.
Your Environment
Useful logs