I know this is an older thread, but I am facing an issue utilizing the update list item activity. I don’t have any hyperlinked data columns, but I do have a lookup field to another list, that presents as a hyperlink (see screenshot). Is this the source of my issues. If so is there a way to modify the update list item request so it is successful? appreciate your help
Hello @david.rya.goderre1
- Retrieve the correct lookup field value from the lookup list.
- Update the lookup field using plain text instead of a hyperlink.
- Check SharePoint column settings for the lookup field.
- Ensure you’re using the correct identifier when updating the lookup field.
- Test updating the lookup field with a plain text value.
Thanks & Cheers!!!
After some more narrowed research I found out that the lookup field was fine. It is actually the choice field that I have that is causing the issue. Do you know a way to resolve the issue of updating a list item with a choice field that allow multiple choice selected? Again I appreciate your response and help!
-
Get List Item:
Input: List Item ID, Site URL, List Name -
Assign activity:
existingChoices = YourListItems(“MultipleChoices”).ToString.Split({“;”}, StringSplitOptions.RemoveEmptyEntries).ToList() -
Modify existingChoices as needed, e.g., add or remove choices
-
Assign activity:
updatedChoices = String.Join("; ", existingChoices) -
Update List Item:
Input: List Item ID, Site URL, List Name
Fields: “MultipleChoices” = updatedChoices
Note that there is a limitation with the Official SharePoint UiPath activities via the O365 library when the sharepoint list item contains a populated URL field value.
This is extremely problematic if organizations have a strict feed policy and are expected only to use Official libraries. I strongly encourage UiPath to fix its official O365 activities to enable all capabilities of editing SharePoint List Items through its activities.
For such commonly used enterprise apps, we can’t rely on marketplace or even UiPath team-developed libraries (or at least make them official at this point)