Retrieving the ChangeKey after calling saveAsync fails in Classic Outlook for Windows #5252
Labels
Area: Outlook
Issue related to Outlook add-ins
Needs: attention 👋
Waiting on Microsoft to provide feedback
Our office.js add-in is adding a button to the Compose Mail window, which is supposed to send the composed email and close the window (as well as call into our API).
The same code that works perfectly in new Outlook for Windows fails to retrieve the ChangeKey in classic Outlook for Windows, and succeeds only after several retries (in approximately 5 to 30 seconds).
Your Environment
Expected behavior
Retrieving the ChangeKey via
GetItem
EWS function should succeed immediately after callingsaveAsync()
for the newly created email.Current behavior
Retrieving the ChangeKey immediately after calling
saveAsync()
fails. Given this log, it success only after the 5th retry after the accumulated interval of 1+2+4+8+16 = 31 seconds.Steps to reproduce
saveAsync()
with the current mail item.GetItem
EWS function passing the item ID returned from thesaveAsync
method.Link to live example(s)
https://gist.github.com/alex-swiftify/073fc87f42161a1199582f52c05c3c9c
Context
We need a stable way to programmatically send the new composed email when pressing our toolbar button.
Useful logs
https://take.ms/BJNwq
The text was updated successfully, but these errors were encountered: