0

I am using Office.context.mailbox.item.saveAsync in an Outlook add-in to save a new appointment. The returned item id is used to fetch the appointment using the REST api (a get request to Office.context.mailbox.restUrl + '/v2.0/me/events/' + itemId). This returns an appointment where Start, End, and Organizer is set correctly, but the Subject, Body, Location, Recurrence, Attendees is not set.

Does saveAsync not save all fields on the appointment?

I am using the REST api because the Recurrence field is not available through the Office.context.mailbox.item in older versions of the Outlook JavaScript API.

6
  • What client are you on? Outlook Web Access or Outlook Windows Desktop, or Mac Outlook etc. If on Windows Desktop, and in Cached Mode, it is likely those properties haven't sync'ed up to the server yet. The Recurrence Field was added to help avoid these sync issues, so that should be used when possible. Commented Nov 28, 2018 at 20:42
  • I am using Outlook Web Access Commented Nov 29, 2018 at 12:43
  • Are you connecting to an Office365 account? Commented Dec 2, 2018 at 19:43
  • Yes I am connecting to an Office 356 account Commented Dec 3, 2018 at 10:16
  • Is this in the Outlook Web beta or in the old client? Commented Dec 9, 2018 at 20:13

1 Answer 1

0

This scenario occurs when calling Office.context.mailbox.item.saveAsync on a new Calendar item that has not been sent yet. This has been fixed in the new Outlook Web beta. The API should behave as designed in Mail and on Existing Calendar items. Note that for existing Calendar items, an update may be sent out to attendees depending on the changes that the user or the add-in made in the compose form.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.