Skip to main content

Notifications

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

  • Suggested answer
    Dynamics_Alok Profile Picture
    1,746 on at
    RE: [Help] [CRM 2015] change default view Party List (Hide/Show)
    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]);
        }
    }
  • Suggested answer
    Community Member Profile Picture
    on at
    RE: [Help] [CRM 2015] change default view Party List (Hide/Show)

    Refer this:

    community.dynamics.com/.../184827

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,302 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,114 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans