Skip to content

Arun Potti's MS CRM blog

Microsoft Dynamics CRM

  • Home
  • About Me
Home2014June

Month: June 2014

Hide POSTS/ACTIVITIES/NOTES from Social Pane CRM 2013

June 6, 2014May 18, 2015 Arun Potti Javascript, MS CRM 2013 hide activities from social pane mscrm 2013, hide notes, hide notes from social pane mscrm 2013, hide posts, hide posts from social pane mscrm 2013, how to hide posts from social pane mscrm 2013, nide activities

“Social Pane” a new feature introduced in Microsoft Dynamics CRM 2013. We can see POSTS, ACTIVITIES and NOTES tab in Social Pane.

Social Pane
We can hide them as per the business need. Will show you with a simple example to hide ACTIVITIES tab from Social Pane.

Example: Hide NOTES tab from Social Pane in Contact Entity

Solution: Include the below Script in a JavaScript Webresource and call the function “HideSocialPaneItems” in Contact Onload and include the input parameter as “ACTIVITIES” to hide ACTIVITIES tab.

//Description : To hide POSTS or ACTIVITIES or NOTES in Social Pane
//Input : “POSTS” or “ACTIVITIES” or “NOTES”
 HideSocialPaneItems

function HideSocialPaneItems(socialPaneType) {
    var ctrlElement = document.getElementById("header_notescontrol");
    if (ctrlElement.children != null && ctrlElement.children.length > 0) {
        for (var ele = 0; ele < ctrlElement.children.length; ele++) {
            var ctrl = ctrlElement.children[ele];
            if (ctrl.title == socialPaneType) {
                ctrl.style.display = "none";
                if (ele + 1 < ctrlElement.children.length) {                     ctrlElement.children[ele + 1].click();                     return;                 } else if (ele - 1 >= 0) {
                    ctrlElement.children[ele - 1].click();
                    return;
                }
            }
        }
    }
}

Output:

Social Pane Output
Please provide your valuable comments on this article.

Advertisements

Share this:

  • Tweet

Like this:

Like Loading...
18 Comments

Blog Stats

  • 299,082 hits

Enter your email address to follow this blog and receive notifications of new posts by email.

Join 1,352 other followers

Recent Posts

  • Field Service – User Guide
  • Enable Organization Insights Preview in Dynamics 365 CRM Online
  • How to get list of all Entities Display Name, Logical Name and Other info using SQL Query in MSCRM?
  • How to get the number of Tables and their records information in MSCRM On-premise?
  • How to use Autocomplete feature in Dynamics 365?

Recent Comments

Arun Potti on Connect to CRM Online or On-pr…
Pushkaraj Pramod Gar… on Connect to CRM Online or On-pr…
Saiteja on Step by Step to connect Dynami…
CRM Portals and Dyna… on CRM Portals and Dynamics CRM P…
Biao Xiao on Step by Step to connect Dynami…

Archives

  • March 2018
  • February 2018
  • January 2018
  • December 2017
  • November 2017
  • October 2017
  • September 2017
  • August 2017
  • May 2017
  • April 2017
  • March 2017
  • February 2017
  • January 2017
  • November 2016
  • October 2016
  • July 2016
  • June 2016
  • May 2016
  • April 2016
  • March 2016
  • February 2016
  • December 2015
  • October 2015
  • September 2015
  • August 2015
  • July 2015
  • June 2015
  • May 2015
  • April 2015
  • March 2015
  • December 2014
  • November 2014
  • October 2014
  • September 2014
  • June 2014
  • May 2014
  • April 2014
  • March 2014

Categories

  • .Net
  • Actions
  • CRM
  • crm 2011
  • CRM 2015
  • CRM 2016
  • Developer Tool Kit
  • Dynamics 365 Portals
  • Early Bound
  • Fetch XML
  • FieldOne Sky
  • HTML
  • Javascript
  • Microsoft Dynamics 365
  • Microsoft Dynamics CRM 2016
  • Microsoft Dynamics Marketing
  • microsoft social engagement
  • MS CRM 2013
  • ms crm 2015
  • Others
  • Phones
  • Phones App
  • Plugins
  • PowerApps
  • Real Time Workflow
  • Reports
  • SdK
  • SharePoint
  • SQL
  • sql server
  • Tools
  • unified service desk
  • USD

Meta

  • Register
  • Log in
  • Entries RSS
  • Comments RSS
  • WordPress.com
Advertisements
Blog at WordPress.com.
Cancel
%d bloggers like this: