I'm trying to update a droplink field value using its name but I get the following error:
Value not in the selection list
The code is
item.Fields["__Subitems Sorting"].Value = sort; // sort contains the name ("Reverse")
As far as I understand, they expect me to pass the ID instead of the name but how can i retrieve it from the name?
Thank you in advance for your help