Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

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

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
    Dynamics_Alok 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
    Community Member Microsoft Employee 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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans