For a business project, I am creating an Outlook Addin which will decode an email and check signatures after which we then add labels and so on.
I am required to send an InternetHeader with my email this way:
item.internetHeaders.setAsync({ "Binding-Data": result }, (setHeaderResult) => {
if (setHeaderResult.status == Office.AsyncResultStatus.Succeeded) {
item.saveAsync(result => {
console.log(result.value);
})
}
else {
console.log(setHeaderResult);
}
})
However, my header will exceed the 999 character limit in most of the cases.
Because of this limit, the header does not want to be added to the email, resulting in an error:
"Sys.ArgumentOutOfRangeException: Sys.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
Parameter name: Binding-Data"
However, I know it is possible to send an email with larger headers.
To test and verify this, I've created a powershell script that sends an email with my required data in the header, which goes perfectly fine, and it's possible to be read out using the Javascript API in the Addin.
I was wondering if there is the possibility to increase or disable the max character limit in the API/Addin, or if it's possible to ask a feature request for this.