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

Notifications

Announcements

No record found.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans