Hi,
I want to restrict the number of entities shown in the
Here's my piece of code -
oConnectionFormCustomization = {
filterRequiredLookups: function (context) {
"use strict";
debugger;
var con = context.getFormContext();
//Xrm.Page.getControl("record2id").addPreSearch(oConnectionFormCustomization.addFilter);
con.getControl("record2id").setEntityTypes(["account", "contact", "systemuser"]);
}
};
I'm calling this method on Load of the Connection form and passing the execution context too as per the v9 standards.
But, when I try this on the Console of DevTools to see where the code is breaking, I get this -
Any thoughts on what I could be doing wrong?
Thanks.
*This post is locked for comments