Emm,
i hava a problem with accessing Schema Fiends from the CRMQuery
Result-XML.
I tried to Access mit Schema-Fields using
Dim users As New DataSet
users.ReadXml(New StringReader(usersXml))
Dim myRow As DataRow
For Each myRow In users.Tables("result").Rows
Dim opportunityVO As New OpportunityVO
Try
opportunityVO.Name = myRow.Item("name")
Catch ex As Exception
System.Diagnostics.Debug.WriteLine("Accountid" + ex.Message)
End Try
'...
Next
BUT i also need the Account-ID which is - looking at the XML Structure
- in the "accountid"-"table". So i would have to use
'...
For Each myRow In users.Tables("account").Rows
'...
to access it. (?) But i seems there is no logic connection beetween
these two virtual tables. Also not every "result-Table" must have a
corresponding "accountid-table".
Any Idea?
Martin