在JavaScript中对多个字段/值对应用$ filter命令时,过滤wrt多个字段的正确方法是什么?
如何在同步插件中确定哪些字段发生了变化?
插件在更新时注册.
类似于JavaScript中的isDirty():
// TODO: Implement your custom Plug-in business logic.
IOrganizationService service = localContext.OrganizationService;
Entity account = (Entity)localContext.PluginExecutionContext.InputParameters["Target"];
if (account.GetAttributeValue<String>("address1_latitude").isDirty())
{
service.Create(new Lead { FirstName = "LOCATION CHANGED" }); // this is a stub
}
Run Code Online (Sandbox Code Playgroud) 我知道从CRM外部执行批量更新时,ExecuteMultipleRequest是一个巨大的性能助推器.我不知道的是从CRM插件中调用它是否有益.
我目前的理解是,使用ExecuteMultipleRequest获得的主要性能是实际的SOAP消息传递成本.因此(用于更新5000条记录)而不是发送5000条单独的Soap消息(每条消息必须被序列化,验证,传输等),所有这些都必须发送到服务器,您只能发送一条包含5000条记录的消息.但是当从插件调用时,您已经在服务器上,因此不必进行SOAP调用,因此使用它没有任何好处.
我还没有看到其他一些潜在的好处吗?
是否可以在视图中显示嵌套链接实体的字段?
我有3个实体:统计信息,帐户和地址.统计信息具有对帐户的查找,并且帐户具有查找地址.我想在Statistics视图中显示所有这些实体的字段.
我试过这个并收到错误:要使用此保存的视图,您必须删除引用已删除或无法搜索的项目的条件和列.
<savedquery>
<IsCustomizable>1</IsCustomizable>
<CanBeDeleted>1</CanBeDeleted>
<isquickfindquery>0</isquickfindquery>
<isprivate>0</isprivate>
<isdefault>0</isdefault>
<returnedtypecode>10008</returnedtypecode>
<savedqueryid>{df101ac4-2e4d-e311-9377-005056bd0001}</savedqueryid>
<layoutxml>
<grid name="resultset" object="10008" jump="sl_name" select="1" preview="1" icon="1">
<row name="result" id="sl_statisticsid">
<cell name="sl_amount" width="100" />
<cell name="sl_date" width="100" />
<cell name="sl_debtor" width="100" />
<cell name="sl_divisioncode" width="100" />
<cell name="sl_source" width="100" />
<cell name="sl_statstype" width="100" />
<cell name="relatedAccount.wl_towncity" width="100"/>
<cell name="relatedAccount.relatedAddress.wl_city" width="100" />
</row>
</grid>
</layoutxml>
<querytype>0</querytype>
<fetchxml>
<fetch version="1.0" output-format="xml-platform" mapping="logical">
<entity name="sl_statistics">
<order attribute="sl_amount" descending="false" />
<attribute name="sl_statstype" />
<attribute name="sl_source" />
<attribute name="sl_divisioncode" />
<attribute name="sl_debtor" /> …Run Code Online (Sandbox Code Playgroud) 如何编写LINQ查询以返回帐号不在列表中的所有帐户?
该列表将从excel文档中提取.
private bool GetAccounts()
{
List<String> accountIds = new List<String>();
accountIds.Add( "[unknown]");
var query = from accounts in context.AccountSet where !accountIds.Contains(accounts.AccountNumber) select accounts;
}
Run Code Online (Sandbox Code Playgroud)
它不必是List.
编辑
这是上述查询运行时发生的情况 - 这是CRM的错吗?

我希望有一个视图显示来自3个实体的属性:
统计信息具有查找帐户和帐户具有查找地址.
视图是关于统计的,我想要来自所有3个实体的属性; 这有可能吗?
问题出在GridXML上.
我想在GridXML中包含属性wl_city.
这是带有链接实体的FetchXML:
<fetchxml>
<fetch version="1.0" output-format="xml-platform" mapping="logical">
<entity name="sb_statistics">
<order attribute="sb_amount" descending="false" />
<!-- It is easy to get these into the GridXML -->
<attribute name="sb_debtor" />
<attribute name="sb_date" />
<attribute name="sb_amount" />
<link-entity name="account" from="accountid" to="sb_debtor"
alias="relatedAccount" link-type="outer">
<!-- It is possible to get this into the GridXML
by using the link-entity alias: relatedAccount.wl_towncity -->
<attribute name="wl_towncity" />
<link-entity name="wl_postalcode" from="wl_postalcodeid"
to="wl_postaltowncity" alias="relatedAddress" link-type="outer">
<!-- I have trouble getting this attribute into the GridXML …Run Code Online (Sandbox Code Playgroud) 如何通知工作流等到特定日期或日期字段?
它与超时等于日期一起工作,但是我宁愿使用等到处理时间在日期或之后。
当我尝试这种方法时,工作流程将推迟到远方的祖先去世。如果我在日期字段而不是特定日期(这是最终目标)中输入,则相同:
