I wrote a routine to remove pounds and ids from sharepoint fields that worked flawlessy, since I found a field withouth ids and # (pound) signs.
I want to understand why sometimes the field is serialized with ids and pounds and sometimes not.
example:
ows_Author="23;#Paperino, Pippo"
or
ows_Author="Paperino, Pippo"
The ‘;#’ sequence is a separator. If you remove it, you are undoubtably breaking things in a nasty way.
The 23 is the ID, the “Paperino, Pippo” is the Value. Just like a dropdown list has value/text pairings. Sometimes it [the ID + separator] will be there, other times not. It depends on how the value is bound in the UI. If it is bound to a dropdown chooser (like “users on this site”), then it’ll be a value/text pairing. If it is automatically filled in by sharepoint, like “modified by,” then it highly likely to not have an ID prefix.
Make sense?
-Oisin