jjzjj

requiredFields

全部标签

xml - 您如何处理 fetchxml 结果数据?

我一直避免使用fetchxml,因为我不确定调用crmService.Fetch(fetchXml)后处理结果数据的最佳方式。在一些情况下,我使用带有LINQ的XDocument从该数据结构中检索数据,例如:XDocumentresultset=XDocument.Parse(_service.Fetch(fetchXml));if(resultset.Root==null||!resultset.Root.Elements("result").Any()){return;}foreach(vardisplayIteminresultset.Root.Elements("result"