Outlook replyall to appointmentitem - outlook

I am writing a script to reply to AppointmentItem in outlook. The AppointmentItem does not expose ReplyAll (or Reply) method, and that is only available for MeetingItems. However, all the events on a user's calendar are stored as AppointmentItem class, even if there are multiple attendees. I am wondering how I can ReplyAll to an AppointmentItem? Is there any way to get the associated MeetingItem?
PS: When I right click on an AppointmentItem in Calendar it does enable ReplyAll, so there should be a way to do this.

Currently, this API/feature is not a part of the product. We track Outlook add-in feature requests on our Tech Community Page. Please submit your request there and choose the appropriate label(s). Feature requests on Tech Community are considered, when we go through our planning process.

Related

event for automatic reply in outlook like OnNewMessageCompose

The OnNewMessageCompose event is fired On composing a new message (includes reply, reply all, and forward)...
We would want to do some custom modification in an add-in ...when the automatic reply setting is clicked to set ooo message.
Or
It would be helpful to have a onAutomaticReplySet event just like the others in
https://learn.microsoft.com/en-us/office/dev/add-ins/outlook/autolaunch#supported-events
Please let us know if there exists an alternative to it via add-ins or com add-ins or office.js etc
when the automatic reply setting is clicked to set ooo message
OfficeJS doesn't provide anything for that. The best what you could do is to check the properties set during the onSend callback. Also you may consider using Graph API to fill the gap with add-in features and events.
Feature requests on Tech Community are considered, when the dev team go through the planning process. Use the github label: “Type: product feature request” at https://aka.ms/M365dev-suggestions .
We don't support that event as part of our Launch Events extension point. You can submit an idea here.

Is there an Outlook Javascript API to get control to addin on Saving as Draft or before syncing to server?

I am working on an Outlook addin to make sure confidential information is not leaked using mail.
Using the on-send feature using ItemSend, we were able to get the email fields and block the sendmail, if required
https://github.com/OfficeDev/Outlook-Add-in-On-Send/tree/master/outlook-add-in-on-send
But there is an use case
User composes the mail and saves it to draft (without clicking on Send)
In outlook on web, composing a mail saves to draft automatically.
How can the add-in get a callback when draft is synced to Outlook server ?
How can the add-in get a callback when draft is synced to Outlook server ?
There is no such callback available for web add-ins. You may post a feature request or suggest a feature on the Tech Community site where community members get to share ideas on ways MS can make Microsoft Graph and Office Platform better by sharing feature requests and ideas.
Nothing like that for the JS-based addins.
For the COM addins, OOM exposes MailItem.Write event - your event handler can cancel the operation.

Outlook add in OnSend event to trigger only for appointments, not emails

Currently I am developing an Add in for Outlook and I have implemented onSend event. Since it is UI-less and it is always triggered, I was wondering is there a way to only trigger it for Appointments not emails? This is because user experience, for them not to have "Add in" triggered when messages are created and sent out.
There isn't a way to restrict On-send to just appointments. One workaround, which I'm sure you are aware of, is to no-op the event handler if the item is a message. This doesn't solve the problem of the add-in running on messages.
We track Outlook add-in feature requests on our Tech Community Page. Please submit your request there and choose the appropriate label(s). Feature requests on Tech Community are considered, when we go through our planning process.

Access Task (ToDo) object within Outlook web addin

I can access Message (mail) and Appointment objects via the office-js library and show the add-in button within these objects to show the pane.
Is there any way how to show the pane in the Task object window?
In Appointment it is possible
Thank you for any hint. I suppose it is not just supported now and I will have to manage Tasks via Graph API.
https://learn.microsoft.com/en-us/graph/overview
Currently, add-ins are not supported on Task items, only appointments and mail messages. We track Outlook add-in feature requests on our user-voice page. Please add your request there. Feature requests on user-voice are considered, when we go through our planning process.

How to send appointment through Outlook add-in?

I'm trying to implement an add-in for Outlook which has some fields and a button that once clicked does some validations and sends an appointment to inform the attendees.
I am using the function below to achieve my goal:
Office.context.mailbox.item.saveAsync()
Office.context.mailbox.item.close() (as a callback for the function above)
It works for office365, but it doesn't work for office365 thick client.
I found in the Microsoft docs that with the function 'saveAsync' in Outlook in cached mode, the item is saved to the local cache. I disabled this option and still getting the same result.
I was using OnSend functionality, but this feature is not supported for Outlook client.
Any advice or tips of how could I have the functionality of sending the appointment through my Add-in in both, client and web version of Outlook? Basically I need to trigger the existing button 'Send' in the calendar.
It sounds like the ItemSend Event (OnSend) you are using in Outlook on the Web handles your scenario. We are working to bring this functionality to Outlook on Windows soon.

Resources