I am working on an Outlook add-in for Exchange On-Premise accounts using Office JS, but since Exchange On-Prem only supports Office JS ≤ 1.5, many Office JS APIs are unavailable for certain tasks. As an alternative, I am using the EWS API to perform operations like adding attachments to an email. While I am receiving a successful response from the EWS API, indicating that the changes are applied on the Exchange server, those changes are not reflected in the compose pane UI in Outlook. For example, I am using the UpdateItem API from EWS to add attachments, and while the attachment is successfully added on the server, it does not appear in the compose pane. I have tried refreshing the compose pane and using methods like saveAsync(), but nothing has worked. Is there a way to sync or refresh the compose pane after performing operations like UpdateItem in EWS so that the changes, such as attachments, are immediately visible in the UI? Any suggestions or workarounds would be greatly appreciated.
I would like to know if there is a way to sync or refresh the compose pane after performing operations using the EWS UpdateItem API so that any changes (such as adding attachments) made on the server are immediately reflected in the compose pane UI.
Possible Solutions I’ve Considered: Refreshing the compose pane manually. (Not usecase) Using methods like saveAsync() to update the UI. (Not usecase)
I am working on an Outlook add-in for Exchange On-Premise accounts using Office JS, but since Exchange On-Prem only supports Office JS ≤ 1.5, many Office JS APIs are unavailable for certain tasks. As an alternative, I am using the EWS API to perform operations like adding attachments to an email. While I am receiving a successful response from the EWS API, indicating that the changes are applied on the Exchange server, those changes are not reflected in the compose pane UI in Outlook. For example, I am using the UpdateItem API from EWS to add attachments, and while the attachment is successfully added on the server, it does not appear in the compose pane. I have tried refreshing the compose pane and using methods like saveAsync(), but nothing has worked. Is there a way to sync or refresh the compose pane after performing operations like UpdateItem in EWS so that the changes, such as attachments, are immediately visible in the UI? Any suggestions or workarounds would be greatly appreciated.
I would like to know if there is a way to sync or refresh the compose pane after performing operations using the EWS UpdateItem API so that any changes (such as adding attachments) made on the server are immediately reflected in the compose pane UI.
Possible Solutions I’ve Considered: Refreshing the compose pane manually. (Not usecase) Using methods like saveAsync() to update the UI. (Not usecase)
Share Improve this question asked Mar 18 at 7:01 Vivek Vivek 11 bronze badge1 Answer
Reset to default 0No, there is no way to do that, neither in a JS addin nor in the good old COM addin/OOM world.
As a general rule of thumb, Outlook will see and refresh its Explorer message list views (such the the folder contents table), but not anything shown in an Inspector or the reading pane.