I have a loop of SharePoint list items
I use Msgraph to get items from SharePoint.
In the loop I have ListItem object which contains data from Sharepoint Item
I convert it to dictionary with the following code
ListItem.Fields.ToDictionary(Function(x) x.Name, Function(x) x.Value)
I receive dictionary of all fields.
I want to get only specific fields from ListItem object.
Do you know how to change my code to create a dictionary of only specific columns?
I keep the name of those columns in array
new string(){“Title”, “Instances”,“CCX_And_Description”,“ID”}