简体   繁体   English

Dynamics CRM 2016修改活动视图列表

[英]Dynamics CRM 2016 modify list of activities views

I am very new to MS Dynamics. 我是MS Dynamics的新手。 I am using dynamics CRM 2016 and I need to remove, in the activities page, the views about entities that I am not using such as Campaign Response, Campaign Activity, etc. 我正在使用Dynamics CRM 2016,我需要在活动页面中删除有关我未使用的实体的视图,例如广告系列响应,广告系列活动等。

I do not see them in the list of views of the Activity entity in my solution, so I cannot remove them from there, am I missing something? 我没有在我的解决方案中的Activity实体的视图列表中看到它们,所以我无法从那里删除它们,我错过了什么? Is there a way to remove those views? 有没有办法删除这些意见?

在此输入图像描述

Its possible. 这是可能的。 I found the way to do it finally after just 3 days of research. 经过3天的研究,我终于找到了最终的方法。

Open your CRM web in XRM Tool kit (download if not having it) XRM toolkit access your org using url and login. 在XRM工具包中打开您的CRM Web(如果没有,请下载)XRM工具包使用URL访问您的组织并登录。 Assuming you have privilege access. 假设您有权限访问权限。 Load all web resources and scroll down to find "activitypointer_ribbon_home.js" Add below lines of code into the file, finally Save and publish to make it available for all users. 加载所有Web资源并向下滚动以查找“activitypointer_ribbon_home.js”将以下代码行添加到文件中,最后保存并发布以使其可供所有用户使用。 Whoa.. it works like charm !!! 哇..它的魅力就像!!!

 hideactivitiesview() // call under onload of xrm page; comes in default script of this file function hideactivitiesview() { var viewSelector = $('#crmGrid_SavedNewQuerySelector')[0]; if(viewSelector) { $(viewSelector).click(function(){ var _activity = $('#ViewSelector_activity')[0]; //get this id from DOM using F12 if(_activity) $(_activity).hide(); }); } } 

Unfortunately you cannot hide/remove those. 不幸的是你无法隐藏/删除它们。

Reason : They are not usual views, they are part of System tailored Activity entity family (Activity, Activity Pointer, Activity Party, Custom Activity types, etc). 原因 :它们不是通常的视图,它们是System定制的Activity实体系列(Activity,Activity Pointer,Activity Party,Custom Activity types等)的一部分。

If you see any Activity entity properties, the checkbox ' Display in Activity Menus ' is checked & disabled. 如果您看到任何“活动”实体属性,则会选中并禁用“ 在活动菜单中显示 ”复选框。 This settings is being used for navigation, views, filters, etc. 此设置用于导航,视图,过滤器等。

Even while creating custom activity, this option is enabled & if you forget to check it, that particular Custom Activity type will be hidden from everywhere wherever you are using its siblings (Email, Fax, etc) 即使在创建自定义活动时,也会启用此选项,如果您忘记检查该选项,则无论您在何处使用其兄弟姐妹(电子邮件,传真等),都会隐藏该特定的自定义活动类型

If its unchecked, Even Associated view will not be showing this activity under it's regarding Parent record, which is failing the main reason why we are using CRM & activity relationship. 如果未经检查,Even Associated视图将不会显示此活动与父记录相关,这是我们使用CRM和活动关系的主要原因。

In a nutshell, this setting once enabled, cannot be undone. 简而言之,此设置一旦启用,就无法撤消。 The activity cannot be distinguished/disabled using security role, because all are of same bucket. 使用安全角色无法区分/禁用活动,因为所有活动都是相同的存储桶。

在此输入图像描述

Maybe you can try some unsupported customizations using DOM explorer in javascript & hide it, which I don't recommend. 也许你可以在javascript中使用DOM浏览器尝试一些不受支持的自定义并隐藏它,我不建议这样做。 PowerObjects blog talk about renaming it to something to avoid users using it & other options. PowerObjects博客谈论将其重命名为某些东西以避免用户使用它和其他选项。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM