问题标签 [dynamics-365]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
validation - Dynamics 365 中应用于电子邮件表单单行文本字段的验证定义在哪里?
我了解,如果我在 Dynamics 365 中针对实体创建字段(我们在本地运行 1612 8.2.2.112),我可以选择单行文本的数据类型和电子邮件的格式,这将导致任何值输入该字段以格式化为可点击mailto:
链接,并提供对输入值的一些验证以确保它们是电子邮件地址。
但是,我一直无法找到任何文档(来自 Microsoft 或其他),它准确定义了在此类字段上执行的验证。从临时测试看来,唯一的要求是值包含@
字符并且不包含一些特殊字符。
似乎没有要求.
在 之后的部分中有 a @
,所以像john@domain
通过这个验证这样的值,我的理解是它们不应该。
那么,任何人都可以指出我确认在此处应用验证的文档吗?还有,是否有人对如何更好地验证这些值有任何建议(我假设一些 JavaScript 可以完成这项工作,但是一些 OOTB如果可能的话会很好)。
dynamics-crm - Dynamics CRM - 同一事件的多个插件,具有相同等级的阶段 - 执行顺序?
我遇到了一个面试问题,我从朋友和同行那里得到了不同的答案,所以我想我会在这里问。
我们通常使用插件排名来定义不同插件的执行顺序,以克服依赖问题。
问题
如果一个实体在同一事件和同一阶段注册了多个插件(来自不同的 dll 或相同的 dll),并且它们的等级/顺序都为 1 - 它们被触发的顺序是什么?
它们都并行执行吗?这是否取决于哪个插件首先注册等?如果可以,请向我指出任何 MSDN 参考资料。
提前致谢。
axapta - 调试时找不到 MS Dynamics 365 for Operations 源
在MS Dynamics 365 for Operations (AX7)中,我正在尝试调试表单方法。我可以设置断点。我可以开始调试,它应该在断点处停止。但是,当我单击时F11,会显示错误:
“找不到来源”
没有这样的文件。找到xpp扩展,所以调试不工作。
如何找到所需的 .xpp源文件?如何解决这个问题?或者有解决方法吗?
c# - AcquireTokenAsync method - Unable to get the token using ClientCredentials in
Here I want to retrieve data from CRM and have registered it in Azure to to get Client Credentials and using it in below code:
But when it come to line:
AuthenticationResult authenticationResult = await authenticationContext.AcquireTokenAsync(organizationUrl, clientCredentials);
It directly exists the program and not giving any output, not even hitting the catch exception part. Is there anything I am missing here?
Also, how to know the tenant name while registering the application in Azure AD?
UPDATE: [Updating in question because not able to write down whole error in comment section so please bare with it.] After applying code changes as suggestion it is throwing error as below:
Microsoft.IdentityModel.Clients.ActiveDirectory.AdalServiceException: AADSTS50001: The application named https://orgname.com was not found in the tenant named mydirectory.onmicrosoft.com. This can happen if the application has not been installed by the administrator of the tenant or consented to by any user in the tenant. You might have sent your authentication request to the wrong tenant. Trace ID: 58b1b994-eac3-4209-b553-4cea6a120500 Correlation ID: fb8a3f3a-8b0c-4cea-90fa-88ea6e9a7208 Timestamp: 2017-11-29 09:09:37Z ---> System.Net.Http.HttpRequestException: Response status code does not indicate success: 400 (BadRequest). ---> Microsoft.IdentityModel.Clients.ActiveDirectory.AdalException: {"error":"invalid_resource","error_description":"AADSTS50001: The application named https://orgname.com was not found in the tenant named mydirectory.onmicrosoft.com. This can happen if the application has not been installed by the administrator of the tenant or consented to by any user in the tenant. You might have sent your authentication request to the wrong tenant.\r\nTrace ID: 58b1b994-eac3-4209-b553-4cea6a120500\r\nCorrelation ID: fb8a3f3a-8b0c-4cea-90fa-88ea6e9a7208\r\nTimestamp: 2017-11-29 09:09:37Z","error_codes":[50001],"timestamp":"2017-11-29 09:09:37Z","trace_id":"58b1b994-eac3-4209-b553-4cea6a120500","correlation_id":"fb8a3f3a-8b0c-4cea-90fa-88ea6e9a7208"}: Unknown error --- End of inner exception stack trace --- at Microsoft.IdentityModel.Clients.ActiveDirectory.HttpClientWrapper.d__31.MoveNext() --- End of inner exception stack trace --- at Microsoft.IdentityModel.Clients.ActiveDirectory.AdalHttpClient.d__22
1.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.IdentityModel.Clients.ActiveDirectory.AdalHttpClient.<GetResponseAsync>d__21
1.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.IdentityModel.Clients.ActiveDirectory.AcquireTokenHandlerBase.d__71.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.IdentityModel.Clients.ActiveDirectory.AcquireTokenHandlerBase.d__68.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.IdentityModel.Clients.ActiveDirectory.AcquireTokenHandlerBase.d__59.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
at Microsoft.IdentityModel.Clients.ActiveDirectory.AcquireTokenHandlerBase.d__57.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext.d__33.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext.d__58.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult() at CRM_WebAPI_Test1.Program.d__1.MoveNext() in E:\VS_2015\CRM Projects\CRM_WebAPI_Test1\CRM_WebAPI_Test1\Program.cs:line 31 ErrorCode: invalid_resource StatusCode: 400
c# - 附加到 Visual Studio 的插件注册过程跳过静态异步任务上的断点方法
我正在使用有关如何使用插件注册工具调试 CRM Online 插件的指南,方法是将流程附加到 Visual Studio。
MakeRequest
我想进入的功能如下。
但是此时单MakeRequest
步执行我的代码时总是会跳过该方法。有趣的是,当我看x
它的值时,即使它在同一范围内,它的值也会作为错误给出。的错误x
是error CS0103: The name x does not exist in the current context
。
在使用 ILMerge 处理我的 Newtonsoft 依赖项时,我也遇到了这个错误。
dynamics-crm - 是否可以自定义 Dynamics 365?网页设计?
是否可以编辑 Dynamics 365 以更改某些实体在打开时的外观。我指的不是表单、应用程序或视图。我希望能够更改帐户实体的外观,例如;较小的视图框、搜索栏的位置以及来自其他实体的其他有用信息。
我很想知道这是否可以通过 Dynamics 365 实现?
如果有助于回答我的问题,我可以提供更多关于我想做的事情的信息。
干杯。
c# - Dynamics365:在创建报价时停止产品复制
我正在 Microsoft Dynamics365 CRM 中开发插件,我需要在创建新报价时不要复制机会产品。我想使用插件手动执行此操作,以便执行某些计算并设置自定义字段。
如何禁用此开箱即用功能?
dynamics-crm - Dynamics CRM 移动客户端,如何在左侧导航窗格中的实体上添加快捷方式
我正在使用适用于 IOS 的动态 365 移动应用程序。我需要将电子邮件和电话实体快捷方式添加到主左侧导航窗格中。现在,我不知道如何添加它。
有人帮我添加这些快捷方式吗?