【问题标题】:How to identify an entity has quick create form enabled or not by Javascript?如何识别实体是否已通过 Javascript 启用快速创建表单?
【发布时间】:2019-06-15 13:50:10
【问题描述】:

我在下面有一些代码,如果启用,我将打开实体的快速创建表单,但如果未启用,我想在新窗口中打开。我需要确定实体是否在定义上启用了快速创建表单,以及如何通过 Javascript 来完成?

var entityFormOptions = {};
entityFormOptions["entityName"] = "contact";
entityFormOptions["useQuickCreateForm"] = true;

// will make it true if quick create form not enabled
entityFormOptions["openInNewWindow"] = false;

// Set default values for the Contact form 
var formParameters = {}; 

// Open the form. 
Xrm.Navigation.openForm(entityFormOptions, formParameters).then( function (success) { console.log(success); }, function (error) { console.log(error); });

【问题讨论】:

  • 那么从上面的代码中如果没有QC表单或者没有启用QC是什么体验?

标签: dynamics-crm dynamics-crm-2013 dynamics-crm-2016


【解决方案1】:

我已经找到解决办法了,我可以通过这个api请求找到IsQuickCreateEnabled

[organization URI]/api/data/v9.0/EntityDefinitions

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-10-17
    • 1970-01-01
    • 2021-01-21
    • 2015-08-29
    相关资源
    最近更新 更多