Tuesday, December 29, 2009

MSCRM: Show Only Related Contacts

A client asked: We have many accounts with multiple contacts. When we want to change the primary contact, the lookup shows all contacts, not just those related to the account. How can we change this?

To display only contacts with the current account as their parent account, you need to make some customizations.

There are two parts to making this work:
* Customize your Contact entity
* Select > Lookup view > click on 'Add Find Columns'
* Check 'Parent Customer' > Save changes > Publish.

Following this change, when you do a lookup for primary contact, you can search by parent company name as well as the person's name. This is useful on its own.

To complete the customiation and do this lookup automatically:
* Customise the Account entity main form > edit the form properties
* Add an onLoad event with the following line of code:

crmForm.all.primarycontactid.additionalparams = 'search=' +

This adds a parameter to the primarycontactid field to pass to the search box when the lookup is invoked (the parameter is the field "name" which is the Account Name of the current Account).

* Save and close > publish Account entity.

Now when you use the Primary Contact lookup from within the Account, you will only see contact that are identified as working for that company (by their Parent Account).


Sadia said...

To get past with any math work, it needs genuine and scientific understanding of numerical thoughts I got A using this essay writing service. It is about finding connections between numbers and in addition having the capacity to portray scientific

Tom said...

Thank you for this really useful article. There were questions I couldn't answer but I know what to do. At the moment looking for dissertation writers in uk

Steve Ageev said...

Great post, thanks to the author! Visit the webiste if you need help in essay writing!

James Blanc said...

Nice post. Students all over the World prefer to use service of professional essay writers and you should try too.

Suzanne Heath said...

We aim to make Dissertationadvice.co.uk the most user-friendly buy low-priced essay online dissertation service inUK, thus it is getting more and more pleasant and efficient to use our service.

Mariya Philip said...

Great tips. Essay writing service uk will help all to write essays, dissertation and other academic writing services. Many of the students don't know to write essays, dissertation and all.

Michael Jones said...

I would like to appreciate your hard work you did write this post, Thanks for sharing this valuable post. Java Assignment Help

trieuan said...

thank for you sharing. I like it Máy lạnh tủ đứng Mitsubishi Heavy

Game Strategy said...

Great post, thanks to the author! Visit the webiste if you need help in Interior Design and Model baju kerja