Replacement for active x object

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP



Replacement for active x object



I am working on developing Outlook appointment. I have a requirement where
I have to create a file and download it . When I open that file it has to open in outlook and create meeting request pop up without using active x . Is there any api developed by Microsoft. Its better if the snippet is from java script



Right now I am able to open pop up with Meeting request in Outlook from the web browser. I am able to do this by enabling Active x controls But it works in IE only. Moreover active x will not be supported by Microsoft in near future.



Current code


var outlookAppObj = new ActiveXObject("Outlook.Application");

var objNS = outlookAppObj.GetNameSpace("MAPI");

var theMailItemObj

=outlookAppObj.CreateItem(0);

theMailItemObj.display();





Have you looked here dev.office.com/reference/add-ins/javascript-api-for-office
– shakeel osmani
Aug 7 at 17:40





Microsoft outlook client I am using is 2010. But here it supports from 2013.dev.office.com/reference/add-ins/outlook/…
– Rajesh Rajoji
Aug 8 at 6:58






@dmitry-streblechenko could you please into this
– Rajesh Rajoji
Aug 8 at 11:13




2 Answers
2



Your code above creates and displays a regular message. You can achieve the same result using a mailto: link.


mailto:



For an appointment, create an ICS file and the user download it - Outlook will be happy to open it. the user can then click Save.


Prepare ics file as var finalAttachedData = "ATTACH;FMTTYE= application/vnd.openxmlformats-officedocument.wordprocessingml.document;ENCODING=BASE64;VALUE=BINARY;X-FILENAME=test.docx:"+base+"n";
var icsMSG = ["BEGIN:VCALENDARnVERSION:2.0nPRODID:-//Our Company//NONSGML v1.0//ENnBEGIN:VEVENTn" + finalAttachedData + "nUID:me@google.comnDTSTAMP:20120315T170000ZnATTENDEE;CN=My Self ;RSVP=TRUE:MAILTO:me@gmail.comnORGANIZER;CN=Me:MAILTO::testmailnDTSTART:" + Date.now() +"nDTEND:" + Date.now() +"nLOCATION:" + "hyd" + "nSUMMARY:Our Meeting OfficenEND:VEVENTnEND:VCALENDAR"];





base is the data read as byte array. stackoverflow.com/a/52060543/5588679
– Rajesh Rajoji
Aug 28 at 14:52






By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

make 2 or more post in bootsrap

Store custom data using WC_Cart add_to_cart() method in Woocommerce 3

Firebase Auth - with Email and Password - Check user already registered