我们在传出crm电子邮件的电子邮件响应方面存在一个普遍存在的问题,该问题已被跟踪,未被Outlook + crm addin自动跟踪.我们的crm是2011年在线.我们的用户中有各种outlook addin版本.在MS支持的帮助下,我们一直试图在几周内对此进行诊断,但我们无处可去.我已经了解了很多关于电子邮件如何跟踪的细节,但我仍然感到困惑.如果有人可以帮助我们了解传入电子邮件的跟踪流程以响应跟踪的crm传出电子邮件,我将不胜感激.道歉这个长期问题.这就是我们所知道的:
我们确实有与联系人具有相同电子邮件地址的crm用户
我们有> 1个拥有相同电子邮件地址的联系人
在诊断应用程序/同步疑难解答选项卡中,我们启用
在我们启用的插件/设置个人选项/电子邮件选项卡中
据称,outlook外观程序跟踪电子邮件的方式发生了变化.显然,这种变化是从同步到异步推广的电子邮件,但我无法找到任何关于这在网络上或从MS本身到目前为止的含义的细节!我已经阅读了不同的帐户,其中RU的变化是(5/6/7).我再一次无法验证哪一个,但如果RU5上的用户没有问题且> 5有问题则指向RU6.
对以下问题的答案有什么帮助:
在上面选择的选项中,"响应"是什么意思?即电子邮件的哪些字段是相关的?如果用户A将原始跟踪的电子邮件发送给用户B,用户B将其转发给用户C,用户C将其转发回用户A,那是否符合条件?或者用户A跟踪/发送给用户B/CC用户C而用户C回复用户A,这有资格吗?在我看来,了解应该跟踪什么的唯一方法是了解"规则",并且规则似乎更加严密地保护可口可乐的配方......
诊断应用程序/同步疑难解答选项卡有一个名为"自动电子邮件标记"的选项.这个玩什么部分?什么构成"线程"?
"背景跟踪电子邮件"选项的相同问题.
这些选项如何一起发挥作用?
来自插件的跟踪日志显示错误与插入其使用的本地SQL CE文件有关,但我们不确定它们的含义以及它们发生的原因
如果处理现在是异步的,那会导致计时异常吗?例如,如果在原始电子邮件被"提升"之前响应进入,则插件可能会尝试在原始电子邮件之前"提升"响应吗?
email crm dynamics-crm dynamics-crm-2011 dynamics-crm-online
我正在尝试从新的REST API中检索多个数据,但我有一个奇怪的问题.如果我在集合上使用$ expand,那么它就不起作用.
请求是:
GET [Oranization URL]/api/data/v8.0/accounts?$expand=contact_customer_accounts HTTP/1.1
Accept: application/json
Content-Type: application/json; charset=utf-8
OData-MaxVersion: 4.0
OData-Version: 4.0
Run Code Online (Sandbox Code Playgroud)
并回应:
{
"error": {
"code": "",
"message": "Expansion of navigation properties isn\u2019t supported on entity collections.",
"innererror": {
"message": "Expansion of navigation properties isn\u2019t supported on entity collections.",
"type": "Microsoft.Crm.CrmHttpException",
"stacktrace": " at Microsoft.Crm.Extensibility.OData.CrmODataUtilities.ThrowIfSelectClauseHasNavigationProperty(SelectExpandClause selectExpandClause, Boolean isCalledFromEntitySet)\r\n at Microsoft.Crm.Extensibility.OData.CrmODataServiceDataProvider.RetrieveEdmEntityCollection(CrmODataExecutionContext context, String entityCollectionName, ODataQueryOptions queryOptions)\r\n at Microsoft.Crm.Extensibility.OData.EntityController.GetEntitySetInternal(String entitySetName, String castEntityName, CrmODataExecutionContext context, CrmEdmEntityObjectCollection crmEdmEntityObjectCollection, ODataQueryOptions queryOptions)\r\n at Microsoft.Crm.Extensibility.OData.EntityController.GetEntitySet(String entitySetName)\r\n at lambda_method(Closure , …Run Code Online (Sandbox Code Playgroud) crm odata dynamics-crm-online dynamics-crm-2016 dynamics-crm-webapi
无法使用Dynamics CRM 2016 Online Web API创建Post实体(https://msdn.microsoft.com/en-us/library/mt607553.aspx).
此有效负载应创建一个帖子 POST /api/data/v8.1/posts
{
"text": "Test Single Post",
"source": 1,
"type": 7
}
Run Code Online (Sandbox Code Playgroud)
(来源1是自动发布,类型7是状态发布)
但它返回:
{
"error":
{
"code":"",
"message":"An unexpected error occurred.",
"innererror"
{
"message":"An unexpected error occurred..."
}
}
}
Run Code Online (Sandbox Code Playgroud)
仅使用"text"提交相同的有效负载也会失败.
请注意,Post实体没有单值导航属性(https://msdn.microsoft.com/en-us/library/mt607553.aspx#bkmk_SingleValuedNavigationProperties),这将允许我设置相关实体(联系人,帐户,等等).
例如,创建任务实体(https://msdn.microsoft.com/en-us/library/mt607619.aspx)可以正常工作POST /api/data/v8.1/tasks
{
"subject": "Test Single Task",
"description": "Test One Description of Task",
"regardingobjectid_contact_task@odata.bind": "/contacts(<someguid>)",
"scheduledend": "2016-07-21T12:11:19.4875892Z"
}
Run Code Online (Sandbox Code Playgroud)
在我看来,Post应该暴露类似的东西regardingobjectid_contact_post@odata.bind,但事实并非如此.
对于上下文,这是通过SOAP端点和SDK创建Post的方法:
var result = Client.getOrganizationService().Create(new Post
{
Text = post.text,
RegardingObjectId = …Run Code Online (Sandbox Code Playgroud) dynamics-crm odata dynamics-crm-online dynamics-crm-webapi microsoft-dynamics-webapi
我在云CRM Dynamics 365中安装托管包时遇到了问题.由于我无法跟踪问题,因此很头疼.
让我解释一下要点:
我已false为所有组件设置了可自定义
我已经在Sandbox模式下注册了插件.我使用插件注册工具获取许可证和其他一些功能.
我试过两种方法.
第一:当我第一次尝试安装时,我从工作流程中获得了未处理状态.
第二:为解决上述问题,我尝试删除许可证处理相关组件.现在我从更新销售订单的插件组件中获取未处理状态.
最糟糕的是我没有在日志文件中收到任何错误消息或错误代码.
最后,这里有几个日志.有人可以提出解决方案吗?
--------------------------------------------------------------------------------------------------------
AsynchronousProcessingService Failed to add the item to the sync item collection for the mailbox : {8CBF53D0-896B-E611-80F2-FC15B4288714}. Exception details : Unhandled Exception: Microsoft.Crm.CrmArgumentException: Invalid input.
at Microsoft.Crm.Asynchronous.EmailConnector.ExchangeItemFinder.AddItemToSyncItemChangeInfoCollection(Item item, String itemId, SyncItemChangeType itemChangeType, ItemObjectType itemObjectType, String crmId)
Inner Exception: System.ArgumentException: Invalid input.
AsynchronousProcessingService Failed to add the item to the ItemFinder sync error collection for the mailbox : {8CBF53D0-896B-E611-80F2-FC15B4288714}. Exception details : Unhandled Exception: Microsoft.Crm.CrmArgumentException: Invalid input.
at …Run Code Online (Sandbox Code Playgroud) 我对收到错误xrm.saveChanges()如果我做UpdateObject而ADDOBJECT工作正常,initally我认为这是因为上下文在此线程讨论收到错误- Dynamics CRM中保存实体的变化 ,但我尝试了所有的选项这里讨论HTTPS ://msdn.microsoft.com/en-us/library/gg695783.aspx但没有任何帮助.
我的代码是`
using (var xrm = new XrmServiceContext("Xrm"))
{
WriteExampleContacts(xrm);
//Create a new contact called Allison Brown.
var allisonBrown = new Xrm.Contact
{
FirstName = "Allison",
LastName = "Brown",
Address1_Line1 = "23 Market St.",
Address1_City = "Sammamish",
Address1_StateOrProvince = "MT",
Address1_PostalCode = "99999",
Telephone1 = "12345678",
EMailAddress1 = "allison.brown@example.com"
};
xrm.AddObject(allisonBrown);
xrm.SaveChanges();
WriteExampleContacts(xrm);
//Update the e-mail address of Allison Brown and link her to the account Contoso. …Run Code Online (Sandbox Code Playgroud) 我正在为 Dynamics CRM(2015 和 CRM Online)的自定义 C# 插件注册插件。
当您使用 Visual Studio CRM Explorer 创建新插件时,您会看到标准的“创建插件”对话框:
在“管道阶段”下,有三个选项:
选择Post-Operation此处会将此代码添加到 XML 注册文件中:
<Plugin Description="..." FriendlyName="PostContactCreate" Name="Cacheron.PostContactCreate" Id="00000000-0000-0000-0000-000000000000" TypeName="Cacheron.PostContactCreate">
<Steps>
<clear />
<Step CustomConfiguration="" Name="PostContactCreate" Description="Post-Operation of Contact Create" Id="00000000-0000-0000-0000-000000000000" MessageName="Create" Mode="Synchronous" PrimaryEntityName="contact" Rank="1" SecureConfiguration="" Stage="PostOutsideTransaction" SupportedDeployment="ServerOnly">
<Images />
</Step>
</Steps>
</Plugin>
Run Code Online (Sandbox Code Playgroud)
关键部分是那条中间线,它说 Stage="PostOutsideTransaction"
该工具生成的相应 C# 代码包括以下行:
base.RegisteredEvents.Add(
new Tuple<int, string, string, Action<LocalPluginContext>>(
40,
"Create",
"contact",
new Action<LocalPluginContext>(ExecutePostContactCreate)
)
);
Run Code Online (Sandbox Code Playgroud)
插件注册中的神奇数字 40 似乎对应于https://msdn.microsoft.com/en-gb/library/gg327941.aspx 中记录的“管道阶段” ,它说
事后
术后
40 …
我正在使用 CRM Online 2016 Web API。现在我拥有的唯一信息是savedQuery 或userQuery 记录。有了这个,我可以获得视图的所有记录,但我也想要这个视图的列名。
是否有一种简单的方法可以使用 Web API 获取列名,仅包含savedQuery/userQuery 记录的信息?
我已经有了获取列名的间接方法(使用 LayoutXML)。
最新的Dynamics SDK的缓存行为使我发疯。
首先,如果要使用CrmServiceClient访问不同的环境,则必须使用RequireNewInstance=True;连接字符串中的参数。如果不是,即使您创建实例并将其部署到不同的环境,每个CrmServiceClient实例都将使用相同的连接。
现在,即使您RequireNewInstance=True;在连接字符串中使用,我也发现在某些情况下仍会发生缓存。
var client1 = new CrmServiceClient("RequireNewInstance=True;
Url=https://myCompany.crm.dynamics.com;
Username=myUser@myCompany.onmicrosoft.com; Password=myPassowrd;
AuthType=Office365");
//Now, client 2 points to a url that doesn’t exists:
var client2 = new CrmServiceClient("RequireNewInstance=True;
Url=https://xxx.crm.dynamics.com; Username=myUser@myCompany.onmicrosoft.com;
Password=myPassowrd; AuthType=Office365");
Run Code Online (Sandbox Code Playgroud)
client2继续使用第一个连接字符串,因此您无法确定新的连接字符串是否正确。
有什么想法如何在我的asp.net应用程序中正确测试Dynamics Crm连接字符串?
c# microsoft-dynamics dynamics-crm dynamics-crm-online dynamics-crm-365
要使用C#代码禁用Dynamics CRM 2016用户,当前使用SetStateRequest.例:
var requestToDisableUser = new SetStateRequest()
{
EntityMoniker = new EntityReference("systemuser", userGuid),
State = new OptionSetValue(1),
Status = new OptionSetValue(-1)
};
organizationService.Execute(requestToDisableUser);
Run Code Online (Sandbox Code Playgroud)
但是,根据Microsoft的说法,不推荐使用SetStateRequest,应该使用Update替换它
但是当我尝试使用Update来禁用用户
示例时:
var userToDisable = new Entity("systemuser", userGuid)
{
["statecode"] = new OptionSetValue(1),
["statuscode"] = new OptionSetValue(-1)
};
service.Update(userToDisable);
Run Code Online (Sandbox Code Playgroud)
然后它引发错误:
未处理的异常:System.ServiceModel.FaultException`1 [Microsoft.Xrm.Sdk.OrganizationServiceFault]:'systemuser'实体不包含Name ='statecode'的属性.
这是事实,因为systemuser Entity没有状态代码.
systemuser Entity有一个IsDisabled属性,但该属性是只读的.
那么如何在不使用的情况下禁用/启用用户SetStateRequest呢?
是否可以计算给定实体中的所有行,绕过 5000 行限制并绕过页面大小限制?
我不想在一个请求中返回超过 5000 行,但只想要该给定实体中所有行的计数。
根据 Microsoft 的说法,您不能在请求 URI 中执行此操作:
The count value does not represent the total number of entities in the system.
It is limited by the maximum number of entities that can be returned.
Run Code Online (Sandbox Code Playgroud)
我已经尝试过这个:
GET [Organization URI]/api/data/v9.0/accounts/?$count=true
Run Code Online (Sandbox Code Playgroud)
还有其他办法吗?
dynamics-crm odata dynamics-crm-online dynamics-crm-webapi dynamics-crm-365