Hi Friends,
I am trying to open lookup dialog using Xrm.Utility.lookupObjects for entity "site". ( it opens the lookup dialog but nothing happen on search..).
It is working for Classic Interface and not working for Unified Interface.
below code is working fine for other system entity such as account, lead, contact etc... but not for "site".
Also it is working for custom entities....
Please let me know in case you face similar things.
=============================CODE=========================================
var openSiteLookup = function () {
var lookupOptions = {
allowFilterOff: false, //when set to “false” disallows user to turn of filtration applied
defaultEntityType: "site",
entityTypes: ["site"],
disableQuickFind: "0", //when set to “1” disables “Quick Find Search”
disableViewPicker: false,//boolean, when set to “true” disables dropdown with views (default value is “false”)
allowMultiSelect: false,
disableMru: false,
showProp: true,
showNew: true, //when set to “true” adds “New” button to lookup dialog (default value is “false”)
};
parent.Xrm.Utility.lookupObjects(lookupOptions).then(function (returnValues) {
if (returnValues.length == 0)
return;
}, null);
}
=============================CODE=========================================
regards,
Santosh







