Answered by:
MS CRM 2011: to remove 'Add New Lead' on Advanced Find.

Question
-
Hi,
I need to remove 'Add New Lead' on Advanced Find but not from its parent's SubGrid (Lead has N:1 relationship with xyz entity).
So, I will not see 'Add New Lead' on Advanced Find while searching leads, but will be available on xyz's left navigation pane.
How can I achieve it?
Thanks and Regards,
Arun
Thursday, November 22, 2012 2:46 PM
Answers
-
Hi Arun,
This is quite easy using the Ribbon Workbench for CRM2011 - http://ribbonworkbench.uservoice.com/knowledgebase/articles/71374-1-getting-started-with-the-ribbon-workbench
- Create a solution that contains the Lead entity
- Load the solution into the Ribbon Workbench
- Select the 'Subgrid' ribbon using the drop down top right of the design surface
- Right-Click on the 'New {0}' button and select 'Customise Command'
- Since we don't need to customise all the Display rules (only the command), locate the 'Display Rules' in the Solution Elements
- For each Display Rule set 'IsCore=True'
- Locate the 'Mscrm.NewRecordFromGrid' command in the 'Solution Element' Commands section
- Right-Click on the Mscrm.NewRecordFromGrid command and select 'Edit Display Rules'
- Click 'Add New'
- Click 'Add Step'
- Select 'PageRule' and set Address='/AdvancedFind/fetchData.aspx' and InvertResult=True
- Click 'OK' and 'OK again.
- Click Publish
You'll now only see the 'Add Lead' button in subgrids - and not the Advanced Find results
Scott
Scott Durow
Read my blog: www.develop1.net/publicFollow Me on Twitter
If this post answers your question, please click "Mark As Answer" on the post and "Mark as Helpful"- Proposed as answer by Scott Durow (MVP)MVP, Editor Friday, November 23, 2012 10:23 AM
- Marked as answer by SuryaMSCRMEditor Thursday, November 29, 2012 6:13 AM
Friday, November 23, 2012 10:19 AMAnswerer
All replies
-
Hi Arun,
This is quite easy using the Ribbon Workbench for CRM2011 - http://ribbonworkbench.uservoice.com/knowledgebase/articles/71374-1-getting-started-with-the-ribbon-workbench
- Create a solution that contains the Lead entity
- Load the solution into the Ribbon Workbench
- Select the 'Subgrid' ribbon using the drop down top right of the design surface
- Right-Click on the 'New {0}' button and select 'Customise Command'
- Since we don't need to customise all the Display rules (only the command), locate the 'Display Rules' in the Solution Elements
- For each Display Rule set 'IsCore=True'
- Locate the 'Mscrm.NewRecordFromGrid' command in the 'Solution Element' Commands section
- Right-Click on the Mscrm.NewRecordFromGrid command and select 'Edit Display Rules'
- Click 'Add New'
- Click 'Add Step'
- Select 'PageRule' and set Address='/AdvancedFind/fetchData.aspx' and InvertResult=True
- Click 'OK' and 'OK again.
- Click Publish
You'll now only see the 'Add Lead' button in subgrids - and not the Advanced Find results
Scott
Scott Durow
Read my blog: www.develop1.net/publicFollow Me on Twitter
If this post answers your question, please click "Mark As Answer" on the post and "Mark as Helpful"- Proposed as answer by Scott Durow (MVP)MVP, Editor Friday, November 23, 2012 10:23 AM
- Marked as answer by SuryaMSCRMEditor Thursday, November 29, 2012 6:13 AM
Friday, November 23, 2012 10:19 AMAnswerer -
Thanks Scott. Working fine now.
- Proposed as answer by kMAT1 Sunday, November 16, 2014 12:55 PM
Wednesday, November 28, 2012 11:42 AM