0

I am trying to have the outlook meeting window pop up with pre-populated fields, upon the click of a button. The answers I have seen work for c# but I cant seem to make it work for js. For reference the answers are here

Eugene Astafiev
  • 47,483
  • 3
  • 24
  • 45
ahmedh
  • 1
  • Have you tried the API displayNewAppointmentFormAsync? This API allows an add-in to create a new appointment/meeting window with the attendees, location, subject, start, and end pre-populated. Source: https://learn.microsoft.com/en-us/javascript/api/outlook/office.mailbox?view=outlook-js-preview#outlook-office-mailbox-displaynewappointmentformasync-member(2) – Outlook Add-ins Team - MSFT Jun 09 '22 at 19:53
  • @OutlookAdd-insTeam-MSFT I put the code from the js example in the docs to execute upon a button click, however I am getting this error whenever it is clicked "Uncaught TypeError: Cannot read properties of undefined (reading 'displayNewAppointmentFormAsync') ". I have included the url for the api in a script tag as well. – ahmedh Jun 13 '22 at 22:56
  • Can you share code snippets to help us understand where the problem is? – Outlook Add-ins Team - MSFT Jun 21 '22 at 09:09

1 Answers1

0

No, it is not. OfficeJS doesn't provide anything for that. Outlook web add-ins work under the context of currently selected item in Outlook. The best what you could do is to use EWS or Graph API for dealing with other items, but not displaying them in Outlook programmatically.

Eugene Astafiev
  • 47,483
  • 3
  • 24
  • 45