In Microsoft Dynamics CRM we can filter a lookup field on form using the Fetch XML condition and “addPreSearch()“ method.
So, Here If we want to filter Account records in lookup view by city having value equal to field Address1: City. We can do this by writing the below code in Jscript.
Then Check for the suggested options for the Account lookup. Only those accounts records will be available to select which having city “US”.
Hope this helps!
Need more from Dynamics CRM? Export your Dynamics CRM Reports to Word, Excel or PDF and attach it to Email or Onenote in just one click. Try Click2Export. For more details get in touch with us on email@example.com.