Can’t update Sharepoint ListItem in C#-project

kimkong9153
Thu, 15 Aug 2024 13:35:20 +0000
Activities

Hello.

I have a project where I download a Sharepoint list. I then have a For Each Item in List, where I iterate through it. I then add all ListItems to a dictionary, and I get exactly what I want. (Microsoft 365 Classic-activities)

My issue is when I want to update certain ListItems, because as far as I understand I would want to use an assign activity and have “field.Value = “New value” (given that I have another for each loop inside the first one, where field is the item in a list of ListItem.Fields, and the “Update List Item”-activity with ListItem as value.

This works in VB-projects, but not in my C#-project. How do I achieve this in my C#-project?

3 posts - 2 participants