Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 82002

Xrm.Utility.lookupObjects not working in Unified Interface for system entity "site" D365 CRM

$
0
0

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


Viewing all articles
Browse latest Browse all 82002

Latest Images

Trending Articles



Latest Images