A repo and NPM package for Office.js, corresponding to a copy of what gets published to the official "evergreen" Office.js CDN, at https://appsforoffice.microsoft.com/lib/1/hosted/office.js.
Provide required information needed to triage your issue
When updating the signature in the mail body after the "OnMessageSend" event, the updated signature is inserted below the existing signature.
Your Environment
Platform : Mac
Host : Outlook
Office version number: Word for Mac 16.87 (24071426)
Operating System: macOS Monterey (12.7.4)
Expected behavior
When the OnMessageSend event is fired we are updating the signature in the mail body. We expect that Office.context.mailbox.item.body.setSignatureAsync replaces the existing signature.
Current behavior
If the mail already has already signature, setSignatureAsync inserts a new signature below the existing signature.
Steps to reproduce
Create an Outlook manifest with OnMessageSend and OnNewMessageCompose events enabled
Each time one of the events are called use the setSignatureAsync API to insert a signature
Observe that the signature inserted by the OnMessageSend event is below the existing signature
We have an addin that inserts the signature at the "OnMessageSend" event to ensure that the organisational CI/CD guidelines are adhered to even if a user changes the signature manually. Currently we can only ensure this in Windows or Web environments.
Useful logs
Thank you for taking the time to report an issue. Our triage team will respond to you in less than 72 hours. Normally, response time is <10 hours Monday through Friday. We do not triage on weekends.
Provide required information needed to triage your issue
When updating the signature in the mail body after the "OnMessageSend" event, the updated signature is inserted below the existing signature.
Your Environment
Expected behavior
When the OnMessageSend event is fired we are updating the signature in the mail body. We expect that Office.context.mailbox.item.body.setSignatureAsync replaces the existing signature.
Current behavior
If the mail already has already signature, setSignatureAsync inserts a new signature below the existing signature.
Steps to reproduce
Provide additional details
Context
We have an addin that inserts the signature at the "OnMessageSend" event to ensure that the organisational CI/CD guidelines are adhered to even if a user changes the signature manually. Currently we can only ensure this in Windows or Web environments.
Useful logs
Thank you for taking the time to report an issue. Our triage team will respond to you in less than 72 hours. Normally, response time is <10 hours Monday through Friday. We do not triage on weekends.