Choose your path Increase your proficiency with the Dynamics 365 applications that you already use and learn more about the apps that interest you. Up your game with a learning path tailored to today's Dynamics 365 masterminds and designed to prepare you for industry-recognized Microsoft certifications.
Visit Microsoft Learn
2019 release wave 2 Discover the latest updates and new features to Dynamics 365 planned through March 2020
Release overview guides and videos Release Plan | Preview 2020 Release Wave 1 Timeline
Ace your Dynamics 365 deployment with packaged services delivered by expert consultants. | Explore service offerings
Connect with the ISV success team on the latest roadmap, developer tool for AppSource certification, and ISV community engagements | ISV self-service portal
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Program | Finance TechTalks | Customer Engagement TechTalks | Upcoming TechTalks
Xrm.Page.getControl("fieldName").addPreSearch(filterFunction);P.S : I have enabled the lookup entity to offline.
could you confirm the CRM version you are using. Do note that custom filter is not supported in Unified Interface (UCI). The mobile app i believe use the UCI interface.
Please mark as verified if the answer is helpful.
Thanks for your reply. We are using CRM Online Version 9.1.
Its working on the Mobile app when the app is online. but when i am switching to offline. it does not filter, even though i have enabled the lookup entity in offline mode and data exists in offline.
Thanks for your responses. Actually i figured out after i got the tip after going through this tip
As per the tip above, In the 2015 CRM Mobile App version, the lookup filter in mobile works on the primary field i.e name field of the entity.
But In the latest 9.1, its changed it works for all the fields. so my filter condition was
<filter type="and">' + '<condition attribute="studentInfoId" operator="eq" value="' + StudentInfoId+ '" /> </filter>
and it works well in the CRM Mobile App in Online mode. but when i was going offline, the above filter was not applied to lookup.
So i used by senses after reading the tip above and applied filter on primary field i.e name field and it worked absolutely fantastic.
So take from this is, In the offline mode, the Filter Condition should be on the primary field of the entity. and it preSearch filter will not work if the filter is other than primary field in offline mode.
Business Applications communities