Remove "Leads" in the dropdown from Account Overview
Hello,
I am trying to remove the "Leads" from the dropdown in the account overview page.
I extended the view S360 and commented the below code in the view. However it is not working. Is it the correct place to hide/remove "Leads" from Account Overview page.
<core:ExtensionPoint name="extLeads"> | ||||||||||
<suite:FacetOverview | ||||||||||
title="{i18n>LEADS}" | ||||||||||
press="navToLead" | ||||||||||
width="100%" | ||||||||||
quantity="{path:'AccountFactsheet/leadsCount', parameters:{expand:'AccountFactsheet'}}" | ||||||||||
height="200px"> | ||||||||||
<suite:content> | ||||||||||
<layout:Grid defaultSpan="L6 M6 S12" | ||||||||||
hSpacing="0" | ||||||||||
content="{path:'AccountFactsheet/Leads'}" > | ||||||||||
<layout:content> | ||||||||||
<VBox height="200px"> | ||||||||||
<items> | ||||||||||
<Label text="{parts:[{path:'validFrom'}],formatter:'cus.crm.myaccounts.util.formatter.formatStartDate' }"></Label> | ||||||||||
<Text text="{description}"></Text> | ||||||||||
<Text text="{qualificationLevel}"></Text> | ||||||||||
<Text text="{statusText}"></Text> | ||||||||||
<Text text="{importanceText}"></Text> | ||||||||||
<core:ExtensionPoint name="extLeadInfo"/> | ||||||||||
</items> | ||||||||||
</VBox> | ||||||||||
</layout:content> | ||||||||||
</layout:Grid> | ||||||||||
</suite:content> | ||||||||||
</suite:FacetOverview> | ||||||||||
</core:ExtensionPoint> |
Former Member replied
extHookAdaptAvailableSubViews: function(aAvailableSubviews) { | |
// Place your hook implementation code here | |
// Remove Marketing Attributes & Leads from the Overview selection | |
aAvailableSubviews.splice(1, 1); | |
aAvailableSubviews.splice(6, 1); |
}