Dynamics Crm 365 custom button on navigation tool bar

不羁的心 提交于 2020-02-04 05:05:26

问题


In Dynamics Crm 365 (online), is it possible to create and display a custom button/icon in the navigation bar?


回答1:


We achieved by doing this.

Add/Use an existing ribbon/command bar button & it's Enable rule as shortcut to execute the below script as a Function from javascript web resource: [Simply copy this script, change org_url & run it in browser developer toolbar console to see it in action]

    var element = window.parent.document.getElementById("navTabGroupDiv");
    var url = "http://<org_url>/_imgs/AboutBox.gif";
    var para = document.createElement("img");
            para.id = "myimg"
            para.alt = "OhMyGod";
            para.src = url;
            para.style.float = "right";
            para.style.height = "30px";
            para.style.marginTop  = "10px";
            para.onclick = function () {
                var webResource = 'test.html';
                Xrm.Utility.openWebResource(webResource, null);
            };

            element.appendChild(para);

            var Relement = window.parent.document.getElementsByClassName("navTabFiller");
            if (Relement!=undefined && Relement.length > 0)
                Relement[0].remove();

Note: This DOM element manipulation is unsupported but this is the only way.




回答2:


There is no possibility to use XrmToolBox SiteMap Editor in Dynamics 365, but there is new feature. Built in SiteMap Editor. Go to Default Solution -> Apps -> and click Sales

Then you can see the AppDesigner window

Click Arrow away SiteMap button and thats all, you can use new SiteMap Editor



来源:https://stackoverflow.com/questions/41969474/dynamics-crm-365-custom-button-on-navigation-tool-bar

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!