最近我们开始使用.Net 6.0 的ac# 项目。我的团队打算使用 Microsoft.PowerPlatform.Dataverse.Client sdk 连接到Dynamics 365 crm进行开发。然而,当我们遇到如下图 1 所示的错误时。我可以知道 SDK 还不支持 .Net 6.0 吗?

也许我错过了一些简单的东西,但有没有办法在AX中编写嵌套查询?我尝试了一些我认为可行的语法,但没有运气.
以下标准SQL语句将完成我正在尝试做的事情,但我需要在AX中执行此操作,而不是SQL.
SELECT table1.column1A, table1.column1B,
(SELECT Top 1 column2B FROM table2
WHERE table1.column1A = table2.column2A
ORDER BY table2.column1A)
AS lookupResult
FROM table1
Run Code Online (Sandbox Code Playgroud)
我的问题是table1与table2有一对多的关系,并且因为AX没有我所知道的DISTINCT函数,所以在使用JOIN语句时我会收到每条记录的许多副本.
谢谢
我有新表格,我正在寻找在指定我自己的查询的 grid byn 中显示所有记录,该功能也可能是:
static void queryVendtableSelect(Args _args)
{
VendTable vendTable;
while select firstOnly *
from vendTable
order by vendTable.AccountNum
where vendTable.Blocked =="aaaaaaaaa"
}
Run Code Online (Sandbox Code Playgroud)
我什么时候可以放这个字体?任何的想法。谢谢你
我编写了一个包含以下配置的插件:

我只是想将一个datetime字段设置为等于另一个datetime字段:
IPluginExecutionContext context = localContext.PluginExecutionContext;
IOrganizationService service = localContext.OrganizationService;
if (context.InputParameters.Contains("Target") && context.InputParameters["Target"] is Entity)
{
// Obtain the target entity from the input parmameters.
Entity entity = (Entity)context.InputParameters["Target"];
try
{
if (entity.LogicalName == "list" && entity.Attributes["gbs_lastusedonoriginal"] != null)
{
entity.Attributes["lastusedon"] = entity.Attributes["gbs_lastusedonoriginal"];
service.Update(entity);
}
}
catch (FaultException ex)
{
throw new InvalidPluginExecutionException("An error occured in the plug-in.", ex);
}
}
Run Code Online (Sandbox Code Playgroud)
我得到的例外是:
未处理的异常:System.ServiceModel.FaultException`1 [[Microsoft.Xrm.Sdk.OrganizationServiceFault,Microsoft.Xrm.Sdk,Version = 6.0.0.0,Culture = neutral,PublicKeyToken = 31bf3856ad364e35]]:插件中发生错误.Detail:
-2147220891 OperationStatus 0 SubErrorCode -2146233088插件中发生错误. …
c# microsoft-dynamics crm dynamics-crm-2011 dynamics-crm-2013
我在MS CRM表单中添加了一个查找字段.我想从查找中删除"新建"按钮.

我已经尝试了几乎所有的解决方案,但无法解决它.我正在使用CRM 2013版本.有人可以请帮助.
是否可以使用 CRM/XRM SDK 返回特定类型实体(而不是单个记录)的关系列表?
例如,如果我有一个名为“Case”的实体,并且我需要查看它是否与“MyCustomEntity”有关系,是否可以在 CRM 中查询“Case”实体的架构并查找关系列表,检查与“MyCustomEntity”相关的一个。与展开自定义中的“1:N 关系”选项卡类似。
我发现这篇文章https://msdn.microsoft.com/en-us/library/gg509021.aspx解释了创建新关系,但无处可说“这些是 X 拥有的关系”
我创建了一个包含单个数据源的表单:InventJournalTable.
我还在其上添加了一个网格和数据源中的两个字段:JournalType和JournalId
该ActionPane有一个按钮,并在其点击的事件处理程序,我试图做到以下几点:
1. add a new data source and join it with the current one on JournalId
2. add to fields from the newly added data source to the current Grid.
Run Code Online (Sandbox Code Playgroud)
这是我到目前为止的...仅用于测试..我试图访问数据源并添加范围.它工作得很好,也许连接也在工作,但我怎么能添加这两个字段?
void clicked()
{
Query query;
QueryBuildDataSource qbdsInventJournalTable;
QueryBuildDataSource qbdsvwInventJournals;
super();
query = InventJournalTable_ds.query();
qbdsInventJournalTable = query.dataSourceTable(tableNum(InventJournalTable));
qbdsInventJournalTable.addRange(fieldNum(InventJournalTable, JournalType)).value(queryValue(InventJournalType::LossProfit));
qbdsvwInventJournals = qbdsInventJournalTable.addDataSource(tableNum(vwInventAdjJrnlCostAmount));
qbdsvwInventJournals.addLink(fieldNum(InventJournalTable, JournalId), fieldNum(vwInventAdjJrnlCostAmount, JournalId));
qbdsvwInventJournals.joinMode(JoinMode::OuterJoin);
//gridOverview.addDataField(
InventJournalTable_ds.executeQuery();
}
Run Code Online (Sandbox Code Playgroud)
还有一件事,我计划添加另一个名为"删除详细信息"的按钮,它将删除第二个数据源,并且网格应该返回其初始状态.
我至少在正确的轨道上吗?我可以得到一些关于此的提示吗?
microsoft-dynamics x++ axapta dynamics-ax-2012 dynamics-ax-2012-r3
尝试使价格表格和价格项目形式只读并使用下面的java脚本但是会出现以下错误; 此记录的其中一个脚本导致错误.有关更多详细信息,请下载日志文件.TypeError:control.getDisabled不是makeFieldsReadOnly的函数
使用Dynamics CRM 2016,这个JS在表单的加载下运行
function onLoad() {
var formType = Xrm.Page.ui.getFormType();
if (formType == 2)
makeFieldsReadOnly(); }
function makeFieldsReadOnly() {
var controls = Xrm.Page.ui.controls.get();
for (var i in controls) {
var control = controls[i];
if (!control.getDisabled()) {
control.setDisabled(true);
}
} }
Run Code Online (Sandbox Code Playgroud)
有关为何可能失败的任何建议,在CRM 2011中运行良好吗?
我们在表单上有一个嵌入的 HTML Web 资源,该资源具有控件的 name 属性(“WebResource_MyWebResource”)。
是否有一种方法可以从 HTML web 资源中使用,它允许我们动态获取其自己的父控件的 name 属性,或者我们是否需要将 webresource 控件名称作为数据参数传递以在脚本中使用它通过parent.Xrm.Page.getControl(arg)?
我们不想硬编码资源名称,因为它用于通用功能,并且不一定知道最终用户将为控件提供的名称。
我正在尝试将 Active Directory ADAL 插件集成到我的 Reactjs 应用程序中,但在获取结果时出现 CORS 错误。
我一直在遵循React ADAL 包步骤,直到我发现了一个对我有很大帮助的SO 问题,但在获取 Dynamics CRM 数据时仍然遇到 CORS 错误。
这是我的MyComponent组件的一部分:
import React, { Component } from 'react';
import { adalApiFetch } from '../../../adalConfig';
class MyComponent extends Component {
constructor(props) {
super(props);
this.state = { APIResponse: '' };
this.getLeads = this.getLeads.bind(this);
}
componentDidMount() {
this.getLeads();
}
getLeads() {
let result;
/*(async () => {
let response = await fetch('https://myorg.api.crm.dynamics.com/api/data/v9.1/leads');
let data = await response.json();
console.log(data);
})(); …Run Code Online (Sandbox Code Playgroud) javascript microsoft-dynamics active-directory azure reactjs
dynamics-crm ×4
axapta ×3
c# ×3
javascript ×3
ax ×2
crm ×2
x++ ×2
.net ×1
azure ×1
dataverse ×1
nested ×1
powershell ×1
reactjs ×1
xrm ×1