In outlook Item send event handler , click the send button error thrown while Message sending - outlook-addin

In Outlook New message compose or Edit the outlook event ,send button click ,(By use The Item send event handler In outlook add-ins) , click the send button this error thrown
But I want this , when i click the send button that one is trigger on my outlook add-ins command.js file , it not trigger anything in this file , this error thrown
In outlook add-ins manifest.xml file use this code for item send event handler
<ExtensionPoint xsi:type="Events">
<Event Type="ItemSend" FunctionExecution="synchronous" FunctionName="validateSubjectAndCC" />
</ExtensionPoint>``
this mentioned function name called on my command.js file ,but inside the function not trigger anything , it shown on outlook info bar error
Notes : My outlook add-ins developed by using javascript language
Any thoughts about this Please share me
Thanks In Advance

Most probably the OfficeJS runtime can't locate the function mentioned in the add-in's manifest file. Make sure the add-in is hosted within a URL mentioned in the manifest file. Also you may try to run the sample add-in available on GitHub.

Related

Outlook add-in - Trigger JS function to execute on selecting recipient

I would like to trigger a task pane to open when the user selects/changes the 'To' recipient for my Outlook add-in.
I have found the code for wiring up the RecipientChanged event:
Office.initialize = function () {
$(document).ready(function () {
Office.context.mailbox.item.addHandlerAsync(Office.EventType.RecipientsChanged, itemChanged);
});
However, I want this code to be triggered on 'startup' of composing or replying to an email as opposed to having to trigger the task pane to from a ribbon button.
Feels like I am looking for the entry point to add this event wiring to.
I am using Outlook 365 latest for this.
thanks
This is not possible today. We track Outlook add-in feature requests on ourĀ user-voice page.
It looks like the feature you want has been requested by others already. Please upvote the existing request. Feature requests on user-voice are considered when we go through our planning process.
This is possible with event based activation of your outlook adding
Please refer to this document

Which RibbonType will show my custom Ribbon for a sent message in Outlook (2013) VSTO Add-In?

New here so please forgive any faux pas!
I have an Outlook VSTO Add-in with a custom ribbon which I currently display only on composing a new message or replying to a message.
I've selected Microsoft.Outlook.Mail.Compose and Microsoft.Outlook.Mail.Read in RibbonType, and my ribbon appears fine on creating a new message or replying, but not when I go to Sent and open a message.
Can anyone point me in the right direction as to where I can find a list of the RibbonTypes and what they relate to, or offer any advice?
Thanks!
Most probably you get a Fluent UI error.
By default, if a VSTO Add-in attempts to manipulate the Microsoft Office user interface (UI) and fails, no error message is displayed. However, you can configure Microsoft Office applications to display messages for errors that relate to the UI. You can use these messages to help determine why a custom ribbon does not appear, or why a ribbon appears but no controls appear. See How to: Show Add-in user interface errors for more information.
You could use any idMso value which exists on the compose window and doesn't exist on the read inspector.

Office JS Outlook and update email body when composing a form

I would like to know if with Office JS Outlook addin, is it possible to set email body automatically when opening and composing an email.
I have already succeed to do it using addin commands and MessageComposeCommandSurface extension point element in the manifest.
However, my code is execution only after a click on a button in the ribbon.
Is it possible to execute my code automatically when the compose form is loading instead of having to click in a button to execute it?
Thanks a lot
This isn't a supported scenario.

Calling saveAsync from Outlook add-in returns warning notification for an event

My Outlook add-in has a compose scenario for an event (extension point : AppointmentOrganizerCommandSurface). The add-in loads the itemId, makes a REST call to the API to get relevant datas from it and save some calculated datas in the CustomProperties field of the item.
The code ends with Office.context.mailbox.item.saveAsync();
Nevertheless, trying to close the event throws a pop-up asking if the user wants to save changes or not.
How could that be since the last executed code is a saveAsync method on the item ?
Edit : the pop-up occurs only using outlook.office.com but doesn't appear on Outlook dekstop.

Outlook office.js add-in task pane closing issue on Outlook for Mac

We have a Outlook add-in using add-in commands. We have a task pane with user info that includes a simple hyperlink with target set to "_blank". When the user clicks on this link a web page pops up. If the user subsequently closes Outlook, everything closes down fine on PC Desktop Outlook and OWA.
On Outlook for Mac however there is a problem. In that case when you close Outlook everything goes away, but our task pane stays on the screen like it is stuck. If you click on this task pane Outlook reappears but the inbox is blank, and only the task pane and the current email is showing. You must manually close the task pane and then Outlook for everything to close properly.
A few observations:
This only occurs for the main mail read command surface. If you pop open an email and open the task pane from the email's Ribbon, and click the link from there, the email closes fine.
If you open the task pane from the main mail read command surface but you do not click on the link on the task pane, then Outlook closes without issue.
It is like the task pane is holding on to a reference to the child window pop up, so Outlook for Mac cannot properly close the task pane.
Can anyone else reproduce this issue? Is opening a child window from a task pane not allowed, or is there something extra you must do to make this work?
Thanks.
Not seen this issue, it would be helpful if you can share some more info on this
- OS version
- Outlook version
- Manifest file used