This is a quick example of parsing a SharePoint Lookup field using SPFieldLookupValue. As we know, SharePoint lookup fields are usually formed as such:
[Lookup ID];#[Lookup Value]
Rather than manually parsing this result (by perhaps splitting the returned string by ‘;#’) we can simply obtain these values using the SPFieldLookupValue:
SPFieldLookupValue splv = new SPFieldLookupValue(oListItem["User_x0020_Email"].ToString());
lookupIdStr = splv.LookupId.ToString();
lookupValueStr = splv.LookupValue.ToString();
![Parsing a SharePoint Lookup Field using SPFieldLookupValue](https://www.alkanesolutions.co.uk/wp-content/uploads/2023/12/parsing-a-sharepoint-lookup-field-using-spfieldlookupvalue-300x169.png)
![Parsing a SharePoint Lookup Field using SPFieldLookupValue](https://www.alkanesolutions.co.uk/wp-content/themes/twentyeleven-child/images/application-packaging-services-blog.png)