在Microsoft Dynamics CRM 2013中,是否可以使用Bing Maps显示多条记录?如果是这样,怎么样?
谢谢你的建议.
为什么CRM 2011在Money数据类型的数据库中创建了两个字段?
例如,名为"Reserve Price"的实体上的属性将在数据库中创建两个字段;
ReservePrice (money, null)
reserveprice_Base (money, null)
Run Code Online (Sandbox Code Playgroud)
两者都有相同的数据.为什么CRM会这样做.
我有以下 XML 代码在我的 Crm Dynamics 表单中过滤我的查找字段。过滤器在输入到帐户字段的数据之后使用。但是,帐户字段可以包含&
符号,当它包含时,会发生错误,指出 XML 格式不正确。
有没有人有任何解决问题的方法?
function accountcontact()
{
Xrm.Page.getControl("new_contactlookup").addPreSearch(function () { addcontactlookup(); });
function addcontactlookup()
{
var accountID = Xrm.Page.getAttribute("new_companylookup");
var AccountIDObj= accountID.getValue();
if (AccountIDObj != null)
{
var fetchFilter1 = "<filter type='and'><condition attribute='parentcustomerid' uitype='" + AccountIDObj[0].entityType + "' operator='eq' value='" + AccountIDObj[0].id + "' uiname='" + AccountIDObj[0].name + "' /></filter>";
Xrm.Page.getControl("new_contactlookup").addCustomFilter(fetchFilter1);
}
}
}
Run Code Online (Sandbox Code Playgroud) 我想在CRM中创建联系人后发送通知电子邮件.
为此,我编写了以下代码..但它抛出了"Invalid Party object type 9"的异常.我搜索它但找不到合理的帮助
谢谢
代码:
//Defining Activity Parties (starts)
Entity Fromparty = new Entity("activityparty");
Entity Toparty = new Entity("activityparty");
//set partyid
Toparty["partyid"] = new EntityReference("contact", ContactGuid.Id);
Fromparty["partyid"] = new EntityReference("team", ConsumerTeam.Id);
//create email entity
Entity Email = new Entity("email");
Email["from"] = new Entity[] { Fromparty };
Email["to"] = new Entity[] { Toparty };
Email["subject"] = "Account Login Information";
Email["description"] = PopulateBody(UserName,Password);
Email["directioncode"] = true;
Email["regardingobjectid"] = new EntityReference("contact", ContactGuid.Id);
Guid EmailID = Service.Create(Email);
//Sending email
SendEmailRequest reqSendEmail …
Run Code Online (Sandbox Code Playgroud) 概述:
我正在编写FetchXML查询以返回Dynamics 2015在线CRM实例中具有已禁用邮箱的用户.现在我来到一个需要将查询结果绑定到ListView的阶段.(该项目使用Dynamics SDK 2015库.)
为了做到这一点,我试图将返回的结果(即EntityCollection - >)转换为列表.但是CRMSDKTypeProxy
在我的演员代码中找不到.
我正在按照这个例子的第二个答案进行演员:
将实体集转换为Ilist,其中Entity Collection未实现IEnumerable
题:
有谁知道如何引用CRMSDKTypeProxy?或者将我的收藏品投射到列表的任何替代方法?
代码:(简短示例)
if (ctrl.CrmConnectionMgr != null && ctrl.CrmConnectionMgr.CrmSvc != null && ctrl.CrmConnectionMgr.CrmSvc.IsReady)
{
CrmServiceClient svcClient = ctrl.CrmConnectionMgr.CrmSvc;
if (svcClient.IsReady)
{
// Get data from CRM .
string DisabledMailBoxUsersFetchXML =
@"<fetch version='1.0' output-format='xml-platform' mapping='logical' distinct='false'>
<entity name='systemuser'>
<attribute name='fullname' />
<attribute name='businessunitid' />
<attribute name='title' />
<attribute name='address1_telephone1' />
<attribute name='positionid' />
<attribute name='systemuserid' />
<order attribute='fullname' descending='false' />
<link-entity name='mailbox' from='mailboxid' to='defaultmailbox' alias='aa'>
<filter …
Run Code Online (Sandbox Code Playgroud) 您好StackOverflow社区,
我只是尝试复制"联系人"的记录 - 来自插件的实体或自定义工作流活动.相关守则是
QueryExpression qe = new QueryExpression("contact")
{
ColumnSet = new ColumnSet("firstname", "lastname")
};
EntityCollection entityCollection = _organizationService.RetrieveMultiple(qe);
foreach (Entity entity in entityCollection.Entities)
{
entity.Id = Guid.NewGuid();
if (!entity.Attributes.Contains("firstname"))
{
entity.Attributes.Add("firstname", "");
}
entity["firstname"] = (entity.GetAttributeValue<string>("firstname") ?? "") + "(Copy)";
_organizationService.Create(entity);
}
Run Code Online (Sandbox Code Playgroud)
不幸的是,我总是收到错误消息
"实体ID必须与属性包中设置的值相同".
如果我遗漏了这条线
Entity.Id = Guid.NewGuid();
Run Code Online (Sandbox Code Playgroud)
然后我收到了错误
"无法插入重复的密钥."
我还尝试了各种其他方法来构建一个新的Guid,包括
byte [] bytes = new byte[16];
random.NextBytes(bytes);
entity.Id = new Guid(bytes);
Run Code Online (Sandbox Code Playgroud)
要么
entity.Id = Guid.Empty;
Run Code Online (Sandbox Code Playgroud)
结果也是
"实体ID必须与属性包中设置的值相同".
另一方面,我有一个桌面应用程序,我借助本文https://msdn.microsoft.com/en-us/library/jj602970.aspx连接到我的Microsoft CRM 2016 Office 365系统并可以复制记录行.
任何帮助是极大的赞赏.
使用{记录URL(动态)(实体名称)}我已将其作为系统要求的一部分插入到TASK活动的" 描述 "中.
But the URL does not render as a HTML hyperlink.
I have also tried using the <hyperlink> tag. But this does not work.
Run Code Online (Sandbox Code Playgroud)
(重要说明:我听说在带有记录URL(动态)(实体名称)属性的电子邮件活动中可以实现这一点.但我试图在任务活动中实现这一点.)
工作流中创建此任务的代码示例示例如下所示:
..... project record, available here: {Record URL(Dynamic)(Entity Name)}.
Run Code Online (Sandbox Code Playgroud)
我们正在使用CRM 2013进行这种切割和配置.你能告诉我我做错了什么以及我需要改变什么来实现这个功能.
我想确认我对在Dynamics CRM中管理交易的理解,并检查我是否遗漏了某些内容.
1)CRM插件中的事务: 在事件管道的阶段20和40中注册的插件在DB事务下运行.因此,如果我在任何消息的前/后操作中注册了三个插件,并且如果第三个插件抛出异常,则前两个插件所做的更改也将被回滚.这种理解是否正确?
2)CRM Web服务中的事务: 如果使用CRM Web服务编写代码,我可以使用ExecuteTransactionRequest请求,并且此消息提供的所有请求消息都将在一个CRM DB事务下运行.这条消息似乎是在2016年版本中引入的,那么在2016年之前处理此类场景的理想方式是什么?
microsoft-dynamics dynamics-crm dynamics-crm-2011 dynamics-crm-2013 dynamics-crm-2015
实际上,我希望每次开发人员发布自定义项时都执行一项功能.因此,我们可以在点击"发布实体"或"发布所有自定义"按钮时编写任何自定义逻辑.OOB还是不受支持的方式?
它不是业务需求,更多的是团队中简化的代码开发过程.
dynamics-crm dynamics-crm-2011 dynamics-crm-online dynamics-crm-2013 dynamics-crm-2016
我想在用户登录Dynamics CRM 2016时显示自定义欢迎屏幕.
我搜索了一下,我只是如何禁用欢迎屏幕浏览但我找不到如何显示我自己的自定义屏幕(消息或HTML).
任何帮助表示赞赏.
谢谢