Hello,
I am trying to use addPreSearch() function on "ownerid" field of "Lead" entity in a Unified Interface app. But it is not working. I confirmed that Lead Entity, its all forms, Team entity, all forms and views of Team entity are added to the App. I am using OnPremise 9.0.17.8 version. The code is below. Debugger in the AddOwnerLookupFilterTeamType function is not triggering. Same code works in a cloud envoirenment.
OwnerLookupFilterOperation: function (context) {
debugger;
var formContext = context.getFormContext();
formContext.getControl("ownerid").setEntityTypes(["team"]);
formContext.getControl("ownerid").addPreSearch(AddOwnerLookupFilterTeamType);
},
AddOwnerLookupFilterTeamType: function () {
debugger; // this debugger is not triggering
var formContext = arguments[0]._formContext;
var teamTypeFilter = "";
formContext.getControl("ownerid").addCustomFilter(teamTypeFilter);
},