Update List Item - (Microsoft 365 - Sharepoint) Activity

Hi,
I am trying to update a value in a Sharepoint List.

When I use the activity “Update List Item” It is looking for a list item.

My studio does not allow me to create a variable of type “System.Collections.Generic.List<Microsoft365.SharePoint.Model.SharePointListItem>”

Studio version - 2024.10.13 , Microsoft 365 package version - 3.6.10 . Can someone tell me how to create this variable. Do I need to import something or what is going on

Hi @Sairam_RPA

Right way to upate list item would be like below:

  1. get list info

  2. use for each list item and provide a filter for the item you are trying to update.

  3. then assign value to list item field using assign statement

  4. use update list item activity

Below is how I am referring to a filed in list item in my assign activity that needs update. In my case, column name is Processed, please provide yours here.

Listitem.Fields.Where(function(x) x.Name.Equals(“Processed”))(0).Value

Hope this helps.

1 Like

Can you share the XAML file here please ?

Hi @Sairam_RPA

PFA

Update value in Sp List Item.xaml (22.4 KB)

1 Like

Thankyou @sonaliaggarwal47 appreciate your help!! :grinning_face:

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.