Share via

outlook javascript api categorizing calendar series and not current item

Anonymous
2023-09-19T18:57:20+00:00

When using the outlook javascript api to add a category to a calendar item, if the calendar item is recurring, all items in the series are categorized and not just the current item. This is causing confusion if the item was processed yet or not as the extension is being used against a project tracking tool. Code being used is below.

Office.context.mailbox.item.categories.addAsync([Constants.SENT_TO_EXOP], function (asyncResult) { if (asyncResult.status === Office.AsyncResultStatus.Succeeded) {return false;} else {message.createOutlookMessage(Office.MailboxEnums.ItemNotificationMessageType.ErrorMessage, asyncResult.error.message, false);}});

The code works great if the calendar item is not recurring but when recurring the entire series is categorized and we don't want that. I couldn't find some type of override flag either. I noticed in outlook adding a category to a recurring item doesn't do the entire series so Im curious if this is a defect or working as designed.

Thanks Shane

Outlook | MacOS | Legacy Outlook for Mac | For home

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

1 answer

Sort by: Most helpful
  1. Anonymous
    2023-09-19T20:52:16+00:00

    Dear Shane Parsons1,

    Good day.

    Thanks for posting in the Microsoft Community.

    Regarding your query on Outlook javascript API categorizing calendar series and not current items. Please understand that this query is outside of our area of expertise.

    For you to be assisted properly, please reach out to Microsoft Q&A by visiting this website Office Development - Microsoft Q&A; I am sure that our experts from that team can address your query effectively and accurately.

    Thank you for your cooperation and understanding. Please do not hesitate to post your queries in the Microsoft Community; we will always do our best to assist you!

    Sincerely,

    Simbarashe | Microsoft Community Moderator

    Was this answer helpful?

    0 comments No comments