I am creating an Office 365 plugin for outlook using NodeJS and javascript... I use OfficeJS library to interact with Outlook. My plugin appears in the Outlook taskpane. I want to have button in my plugin HTML. When clicking on that button the taskpane must be closed. Anybody knows how ? thank you !
This feature is not available yet, but you will be able to add it into your add-in soon. As of Office.js API level 1.5 you will be able to call the method "closeContainer()". Preview documantation is available at Office.context.ui.closeContainer()
EDIT:
Office.context.ui.closeContainer() method is available at Mailbox 1.5 level API. The supported host is limited to Outlook.
Currently there is no support for any other hosts to open and close taskpain. If you have strong requirements for this feature please consider up-vote the uservoice suggestion for Office developers.
Related
Can we detect the Web API version in js like v8.0 v8.1 or v9.0, this will help to write supported message calls vs unsupported messages and handle it gracefully?
One way is about querying the CRM version using SDK RetrieveVersionRequest & detecting it using mapping like CRM 365 means v9.0 etc.
Any direct way?
you can use Xrm.Page.context.getVersion
more details on my blog post
Xrm.Page.context.getVersion is now a supported method, use it!
I have the office.js add-in.
I need to show my custom HTML page in the iframe in the task pane.
I login in my custom HTML page in IE 11, but the cookies is not traveling to the task pane in the add-in.
How can we share the cookies between IE and Office add-in?
You cannot. IE has a different cookie jar than the desktop add-in host.
However, if you need to prompt a login page, etc., you can use the Dialog API to prompt one in a cross-platform-compatible way.
Is there a particular scenario that is not addressed by the dialog API?
I want to check if user has outlook application installed just by using a simple HTML page with javascript.
Is this possible?
NOTE: This should also work on google chrome. ActiveXObject does'nt work on Google chrome
Regards,
Arif
No. There is no way for a webpage to sniff out what is installed (with the occasional exception of browser plugins) on a visitor's system.
Using the Office.js Api how do you determine the current App being used "Office.context.requirements.isSetSupported" only seems to work for Excel & Word, and I would like to check for Outlook.
You can use different URLs for the add-in between excel/word and outlook. Or you can check Office.context.mailbox - if it's defined, then you're running in Outlook.
I'm having a problem and I really need your support!
Here's the problem:
I have an application (.NET 4.0) that exposes a COM interface. Most of our clients is able to simply use the tag in the HTML and that will launch our application; also they are able to interact with it.
Today a customer, that have a lot of Javascript rendering, informed us that using IE is not possible; in IE the page is very slow but in Google Chrome is very fast. So, they ask us how to interact with our application using Google Chrome.
I've made some searches in Google but it seems that OLE is only available in IE.
Anyone have a solution for my problem?
Basically the requirements are:
Launch our application as Local Server using a GUID or a name;
Be able to invoke methods in our COM interface;
Be able to receive events from our COM interface;
Thanks a lot.