I’m trying to iterate through, and grab values off a dictionairy that is populated through a call to sharepoint using the ListServiceUtility.GetListItemData Method. My code looks as follows
actualList = ListServiceUtility.GetListItemData(Test_Sharepointsite_url, myCred, Test_List_Name, Nothing, fieldNames, <Query/>, isRecursive, pagingSize)
For Each Entry As Dictionary(Of String, String) In actualList
Debug.WriteLine(cnt)
cnt += 1
For Each pair In Entry
Debug.WriteLine(innerCnt)
innerCnt += 1
Debug.WriteLine("Key:" & pair.Key & " Value:" & pair.Value)
Next
Next
cnt goes up to 4, as I expected it should, seeing as there are 4 entries in my sharepoint list, however, innerCnt doesn’t increment at all, and the last for each block there is completely by passed.
I’m not getting any errors, so it’s a logic problem here, not a syntax one. Hopefully i’ve provided some one here with enough information to help!
The dictionaries were empty because of the feildname variable being improperly created. Thanks for the help everyone.