Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Here are a few options. I don't know the output of all of them (would be a good blog post) but one of them should do what you want:</p> <ul> <li><a href="http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.splistitem.getformattedvalue.aspx" rel="nofollow noreferrer">SPListItem.GetFormattedValue()</a></li> <li><a href="http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spfield.getfieldvalue.aspx" rel="nofollow noreferrer">SPField.GetFieldValue()</a></li> <li><a href="http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spfield.getfieldvalueashtml.aspx" rel="nofollow noreferrer">SPField.GetFieldValueAsHtml()</a></li> <li><a href="http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spfield.getfieldvalueastext.aspx" rel="nofollow noreferrer">SPField.GetFieldValueAsText()</a></li> </ul> <p>It may also be handy to know that if you ever want to make use of the raw values then have a look at the <code>SPField*XYZ*Value</code> classes. For example the form <code>&lt;id&gt;;#&lt;value&gt;</code> you mention is represented by the class SPFieldUserValue. You can pass the <a href="http://msdn.microsoft.com/en-us/library/ms458798.aspx" rel="nofollow noreferrer">raw text to its constructor</a> and extract the <a href="http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spfieldlookupvalue.lookupid.aspx" rel="nofollow noreferrer">ID</a>, <a href="http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spfielduservalue.lookupvalue.aspx" rel="nofollow noreferrer">value</a>, and most usefully <a href="http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spfielduservalue.user.aspx" rel="nofollow noreferrer">User</a> very easily.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload