Dynamics CRM mobile app - ribbon button to open URL via JavaScript? - dynamics-crm

In Dynamics CRM 2016 I have some buttons in the ribbon that run javascript which use window.open to launch a new window. This works fine on the web browser in desktop mode, but in the Dynamics CRM mobile app it doesnt work. The documentation says:
Dynamics 365 mobile clients also do not support the window.open
method.
However, Microsoft gives no alternative.
I notice if I add a button in Ribbon Workbench and set the command to "Open URL" and put in a web address, it works fine and opens on the mobile app. The XML is:
<Actions>
<Url Address="http://google.com" WinMode="0" />
</Actions>
I assume that XML then translates into Javascript on the app. I wondered if there is a way of using Javascript to open a URL on the mobile app?
I have tried window.open and location.href to no use. In this case javascript is more ideal as I am passing a bunch of parameters to the URL that arent visible by the options in Ribbon Workbench.

It looks like it is not possible to use JavaScript to open a window on CRM for Mobile. However, have come up with a rough alternative.
Using the parameters available in ribbon workbench it is possible to create an "Open URL" command which passes the OrgName, EntityType and PrimaryID. I send these values to an ASPX page which connects to the CRM web service where I can then get the rest of the values I need, and then from there Response.Redirect to the URL I needed to go to.

Related

Does Microsoft Teams have a embedded web browser?

my bot sends an Action.OpenUrl button. The documentation states "When invoked, show the given url either by launching it in an external web browser or showing within an embedded web browser". The link I always open external web browser. What is an embedded web browser? does ms Teams have a built-in web browser?
Teams is an Electron app - link, meaning it is a Javascript app running in a web browser (a modified Chromium) in the first place.
Teams v2 will move to Edge WebView, so a different browser. source

webchat integration with Atlassian Confluence

Has anyone integrated the webchat/directline from Microsoft Botframework with Atlassian Confluence
We are exploring options to host a chatbot on one of the wikis powered by Confluence
Any directions/guidance will help;
The only option I see is to use the "/" (slash) command and add an embedded iframe into the space's page. It's possible to backup and download, edit, and upload and restore a page however, the exported page is in XML. So, editing a backed up page wouldn't give you access to the HTML needed to truly integrate Web Chat into the page.
As for the slash command, you will need to develop a separate web app to host the Web Chat instance. Then, simply provide the values required in the iframe macro tool, and you should be set.
iframe macro:
Published page:
Hope of help!

Host CRM Dynamics in iframe contained within a custom website, with custom website acting as parent

Is it possible today to use an iframe to host Microsoft Dynamics CRM?
Specifically, I would like to have a custom application (acting as PARENT most web application) which has an iframe displaying Microsoft Dynamics CRM (say, default home page of CRM). The custom application would have a collapsable/expandable area which would consume about 50-70% of the web application user interface. This collapsable expandable area would simply be an iframe with Microsoft Dynamics CRM taking up about 50-70% of the user interface real estate.
I need the iframe URL to be any URL I would normally browse to on the Dynamics CRM such that I can do just about anything I would normally do with the CRM in a browser tab as I can in the iframe.
For reference:
Parent Application = Twilio Flex 'Agent Desktop'
Is this possible? Thank you advance.

MSTeams dev: Navigate from Personal tab to different Team/conversation

Question
How can I create a link to navigate to a Team's channel, from within a custom personal tab?
Context
I'm trying to navigate from within a personal tab to a Team the user is a member of. I've tried the only 2 options I can think of so far:
using an a tag
using microsoftTeams.executeDeepLink
But they don't work.
When clicking the a tag, the tab contents are redirect to the general MS Teams navigation page, where you can choose to open in client or web.
When using the microsoftTeams.executeDeepLink function, a result is returned containing the error message The executeDeepLink API is not implemented in this client.
It seems the API only works on team (configurable) tabs on the desktop client.
#Nsevens This feature is not public yet. Could you please try this in the Developer Preview

How to make Office Web App Server able to edit a document with Cobalt

I am trying to build my own WOPI host using ASP.NET MVC and its WebAPI functions according to this example
https://code.msdn.microsoft.com/office/Building-an-Office-Web-f98650d6
I successfully used that example to connect to my Office Web App Server and I can use that to access files of Excel and PowerPoint in local path and I am able to edit it, but I cannot use it to open word document in editing mode as the Post action handler isn't implemented completely without any response so that it cannot handle any edit request.
In order to add support for editing of Office document, I tried this example with POST request handler based on Cobalt library extracted from Office Web App Server.
https://github.com/marx-yu/WopiHost
With this example I managed to edit ans save all kinds of document with Office Web App Server. However, when I tried to integrate these two together I found that even if I can enter the edit window of Excel and PowerPoint and I can see that Post Requests from Office Web App Server like locking and Cobalt are handled by my WOPI Post API action handler. Those change doesn't take any effect on my local file at all. Moreover, I still cannot edit word document and when I checked the back log of Office Web App Server, I found the error message is Cobalt is not supported while I have already set the SupportsCobalt in CheckFileInfo response to true! Any help is very appreciated!
I think I have exactly what you are looking for. Check out my implementation of the WOPI host. It's an MVC6 app that takes the best from the both examples you are referring to and adds some extra features.

Resources