In this webinar, our experts showcase a variety of demo use cases of how different components of the...
When customizing lookups in Dynamics CRM, you may run into a scenario where you are unable to assign Accounts to Users, but can assign Account records to Teams. Here is what the lookup will look like when trying to assign Account records.
Everything looks normal except for the grayed out Look for dropdown.
Initially, it may appear that the assign button was rebuilt or that there is some JavaScript firing upon clicking the button. However, the issue is actually with the XML for the Account entity.
A quick export of the Account entity in a solution will allow you to review the XML and find the
Leveraging the SDK we know that the ObjectTypeCode of 9 is Teams, and for Users it is 8.
The fix here was to add the tag:
The completed XML should look like this:
<LookupTypes>
Follow these steps and you should no longer have an issue with customizing lookups in Dynamics CRM. Here is a complete list of ObjectTypeCodes. You can also check out how to Create a Custom Filtered Lookup in CRM 2011.
For more helpful tips and tricks for Dynamics CRM, keep checking our blog!
Happy CRM'ing!
Is there a way to define in JavaScript which LookupType objects to allow when user starts search (clicks on lookup field search icon)?
I need a way to enforce system lookup field on "New Connection" form in CRM to allow only search of records of my custom entity type...
I have exactly the same issue as Amer. In CRM 2016 I need to force the Connection "Name" field to display Contacts when you click on the Magnifying Glass.