Thursday, June 25, 2015

MSCRM 2015: Filter Contacts Out of Company Name Field on Contact Form

A client recently asked about the Company Name field on the Contact form: when you do a look up, it shows both contacts and accounts. Why would that be? Don’t we just want to see accounts here?
This is an out of the box field and you can see the description provided by Microsoft below. 

I think in most cases users would be choosing an account and not a contact for this field. If you have a lot of accounts and contacts in your system, it might be worthwhile and necessary to filter out the contacts so that users are only searching on accounts. You can also use this method to filter by other items like the state or country of the contact’s address. Opportunities and Quotes have a similar field called Potential Customer that can
be either an account or contact so you could follow the same procedure with a few tweaks for those forms. 

Add the following JScript to the OnLoad event of the Contact form.

function addEventHandler() {
function addFilter() {
        var filter ="<filter type='and'><condition attribute='contactid' operator='null' /></filter>";
        Xrm.Page.getControl("parentcustomerid").addCustomFilter(filter, "contact");


lin liyi said...

Your swiss duplicate designer watches pertaining to the two adult men along with longines replica uk occur in several variations along with whatever one particular you ultimately choose you're likely to discover a beautiful enjoy to suit your fashion correctly. By way of example, Rolex's swiss duplicate designer watches will have precious gems inserted in the event that adjoining your face, which often can convert the ordinary-looking enjoy straight into a thing cheap rolex replica to get donned at most renowned involving instances. Cartier designer watches have a very okay hublot replica sale involving straightforwardness along with luxury. Though precious gems will often be seen as your token involving high-class, a lot of Cartier designer watches get number of as well as zero precious gems in any respect. Alternatively, your sq face in a very platinum as well as bright platinum scenario demonstrates attractive improvement, and is also instantaneously recognisable because company audemars piguet replica sale can be. For females whom like a new high, well-designed athletics enjoy, it's not a real trouble, nevertheless when making designer watches to get donned while manner goods and also timekeepers, a lot of difficulties would have to be surrendered to relieve space that this activity used.

PLC training in chennai said...

WIZTECH Automation, Anna Nagar, Chennai, has earned reputation offering the best automation training in Chennai in the field of industrial automation. Flexible timings, hands-on-experience, 100% practical. The candidates are given enhanced job oriented practical training in all major brands of PLCs (AB, Keyence, ABB, GE-FANUC, OMRON, DELTA, SIEMENS, MITSUBISHI, SCHNEIDER, and MESSUNG)

PLC training in chennai
Automation training in chennai
Best plc training in chennai
PLC SCADA training in chennai
Process automation training in chennai
Final year eee projects in chennai
VLSI training in chennai