Home > MS CRM 2011 > Set Default Entity in Muliple Entity Lookup

Set Default Entity in Muliple Entity Lookup


Lot of times our customer asked to restrict the customer lookup to show only account record in Opportunity record and i came up with below script that did the trick .

Even this restricts searching only in account record when autocomplete enabled on the lookup

document.getElementById(“customerid”).setAttribute(“lookuptypenames”,”account:1:Account”);
document.getElementById(“customerid”).setAttribute(“lookuptypes”,”1″)

Advertisements
Categories: MS CRM 2011
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: