目前正在尝试序列化EntityCollection,以便通过客户端交互将所选记录发送到自定义操作。现在,发送EntityCollection本身很麻烦。有什么想法吗?
答案 0 :(得分:0)
了解如何预期序列化,以防其他人在将来遇到此问题。
<a:KeyValuePairOfstringanyType>
<b:key>BusinessEntityCollection</b:key>
<b:value i:type="a:EntityCollection">
<a:Entities>
<a:Entity>
<a:Attributes>
<a:KeyValuePairOfstringanyType>
<b:key>webresourceid</b:key>
<b:value i:type="z:guid">02fe0b47-8800-e511-80ef-c4346bada558</b:value>
</a:KeyValuePairOfstringanyType>
<a:KeyValuePairOfstringanyType>
<b:key>name</b:key>
<b:value i:type="c:string" xmlns:c="http://www.w3.org/2001/XMLSchema">ryr_formexperiment.crmform.min.js</b:value>
</a:KeyValuePairOfstringanyType>
<a:KeyValuePairOfstringanyType>
<b:key>content</b:key>
<b:value i:type="c:string" xmlns:c="http://www.w3.org/2001/XMLSchema">Ly9yeXJfZm9ybWV4cGVyaW1lbnQuY3JtZm9ybS5taW4uanM=</b:value>
</a:KeyValuePairOfstringanyType>
<a:KeyValuePairOfstringanyType>
<b:key>webresourcetype</b:key>
<b:value i:type="a:OptionSetValue">
<a:Value>3</a:Value>
</b:value>
</a:KeyValuePairOfstringanyType>
</a:Attributes>
<a:EntityState i:nil="true" />
<a:FormattedValues>
<a:KeyValuePairOfstringstring>
<b:key>webresourcetype</b:key>
<b:value>Script (JScript)</b:value>
</a:KeyValuePairOfstringstring>
</a:FormattedValues>
<a:Id>02fe0b47-8800-e511-80ef-c4346bada558</a:Id>
<a:KeyAttributes xmlns:c="http://schemas.microsoft.com/xrm/7.1/Contracts" />
<a:LogicalName>webresource</a:LogicalName>
<a:RelatedEntities />
<a:RowVersion>1308124</a:RowVersion>
</a:Entity>
</a:Entities>
<a:EntityName>webresource</a:EntityName>
<a:MinActiveRowVersion>-1</a:MinActiveRowVersion>
<a:MoreRecords>false</a:MoreRecords>
<a:PagingCookie><cookie page="1"><webresourceid last="{02FE0B47-8800-E511-80EF-C4346BADA558}" first="{02FE0B47-8800-E511-80EF-C4346BADA558}" /></cookie></a:PagingCookie>
<a:TotalRecordCount>-1</a:TotalRecordCount>
<a:TotalRecordCountLimitExceeded>false</a:TotalRecordCountLimitExceeded>
</b:value>
</a:KeyValuePairOfstringanyType>