Remove unwanted activities from web interface
Hi,
I love the CRM forums because lot of people are asking very interesting question...
The last I liked was: how to remove some activities when I click on "New" button in the activities grid or when I click to the top menu "New activity".
Indeed, if you don't want to use the campaign response activity, or any other of them, you can't hide them in a native and supported way.
So, I give you some hints to hide these activities.
Please be aware that these methods are unsupported! Make a backup of each mentionned file before follwoing this procedure.
Removing an activity in the "New" activity dialog in activities grid
To remove the activity you want, open the file \Activities\dlg_create.aspx.
Search for the block in blue in the screenshot below. You can comment or delete the lines that correspond to the activities you need to hide. Then save the file.
Removing an activity from the "New activity" top menu
For this one, open the file \_root\bar_top.aspx.
Search for the function "CheckAddin()". This method is called during page loading. Add the line (see screenshot below) corresponding to the activity you need to hide.
The all list of activities id is:
- btn_new_task
- btn_new_fax
- btn_new_phonecall
- btn_new_email
- btn_new_letter
- btn_new_appointment
- btn_new_serviceappointment
- btn_new_campaignresponse
Comments
The function CheckAddIn()does not exist in my \_root\bar_top.aspx file. Therefore I'm unsure how to continue...
What is your rollup version?
I'll try if I find time for this
It is possible to hide new activity menu items or button by updating the ribbon.
This is not so easy but doable...
Is it possible to hide existing Activity types (e.g. Fax, Campaign Response) from the "File->New Activity" menu? I can't find a way to do this. I can't find a way to hide new ones either - don't know what definitions to use on the ribbon.
For the Fax activity, I could just open up the customizations.xml file and set "IsActivity" to 0??
if the function CheckAddIn()does not exist in \_root\bar_top.aspx file, you can use this code in script tag:
function window.onload() {
if (!IsNull(document.getElementById('btn_new_campaignresponse'))) {
document.getElementById('btn_new_campaignresponse').style.display = 'none';
}
}
I have some custom made activities in CRM, to display activities that are created and controled outside of CRM.
I would therefore like to hide the possibility to create new activities of these types in CRM, but still leave the possibility to create "normal" activities like Task, Phonecall ect.
I would prefer to stik to supported methods like Jscript or RibbonDiffXml changes - if possible...
(I'm working on a CRM 2011 OnPremise solution).
Hope you can help...!
Meilleurs salutations,
Tomas ;-)
The solution of this post only applies to CRM 4.0.
I didn't look at the possibilty to do the same in CRM 2011.
Please use Microsoft Forums to ask the question.
Thanks for answering so quick! :-)
http://vikramaengg.blogspot.com/2014/02/hide-unwanted-activities-from.html