Ha all,
I am trying to use the Lookup Filter as described in https://learn.microsoft.com/en-us/dynamics365/marketing/marketing-fields
MsCrmMkt.MsCrmFormLoader.on("afterFormLoad", function() {
MsCrmMkt.MsCrmFormLoader.fillLookupFromSearch("b9051065-5851-41db-94bc-b7e1dc6bb646", "Microsoft")
.then(function (r) {
console.log("Success performing search");
}).catch(function (e) {
console.error("Error performing search");
});
});
Although the filter works, it still enables the user to manually type in the lookup field, therefor bypassing the set filter (it will lose the "Microsoft" filter as set in the example).
Setting the Lookup field to Read Only also does not help, because although any typed characters won't appear in the lookup field, it still queries and shows any results based on the characters entered,.
Any idea on how to keep the filter working without (!!) setting the filter in the used view?