I am currently struggling with the situation that I cannot remove the bcc value, when trying to set it to an empty array, empty string or null this will throw an error.
return item['bcc'].setAsync([], (asyncResult) => {
if (asyncResult.status !== Office.AsyncResultStatus.Succeeded) {
return failure(Error(asyncResult.error.message))
}
return success()
})
I couldn't find a way in the documentation something like a removeAsync maybe? Is there another solution to remove the value from Bcc field?
Client: Outlook for Mac Version: 16.46 (21021202)
Error message when Bcc is set to empty array:
Unhandled Rejection (Error): An internal error has occurred.
Error message when Bcc is set to empty string or null:
Unhandled Rejection (Sys.ArgumentException): Sys.ArgumentException: Value does not fall within the expected range.
Parameter name: recipients
from Outlook add in cannot reset Bcc field
No comments:
Post a Comment