web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

[Help] [CRM 2015] change default view Party List (Hide/Show)

(0) ShareShare
ReportReport
Posted on by 60
Hello all,
I need help on the filtering part of a party list field
I want to change the default view (look in)
Put Related Contact for Entity Contact

2017_2D00_03_2D00_10_5F00_12h51_5F00_21.png And for entities (look for) keep just the entity contact and hide the other entity

2017_2D00_03_2D00_10_5F00_12h53_5F00_03.png


thank you very much

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Community Member Profile Picture
    on at

    Refer this:

    community.dynamics.com/.../184827

  • Suggested answer
    Dynamics_Alok Profile Picture
    1,746 on at
    function EmailFilter(fieldname) {
        var HideEntities = ["account","lead", "systemuser"];
        var filter;
        var i;
        for (i = 0; i<HideEntities.length; i++) {
            filter = 
                "<filter type='and'>" +
                    "<condition attribute='" + HideEntities[i] + "id' operator='null' />" +
                "</filter>";
            Xrm.Page.getControl(fieldname).addCustomFilter(filter, HideEntities[i]);
        }
    }

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Varsha deshpande Profile Picture

Varsha deshpande 5

#2
JS-09031509-0 Profile Picture

JS-09031509-0 3

#3
Ciprian  P Profile Picture

Ciprian P 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans