Get User Email in MatchPoint

If you want to show the user name with a email link in MatchPoint, you can use the SPHelper.GetUser() method. In a DocLib you can use the fields "Editor" or "Modified_by".

In the following example I have a ListDataProvider with a XslTransformer. The first thing we have to do is a mapping.

Mapping of the DataItem


If the field you want to show (Editor) is of type SPUserField you should cast it to String with ToString() or DisplayString.

Now you can you the mapping in the XSLT.

XSLT

Comments

Popular posts from this blog

SharePoint Web Folders - Create a Desktop Shortcut to a SharePoint library on Windows XP with and without SSL

Ways to redirect http requests in SharePoint

Open SharePoint 2010/2013 Display, Edit, New Forms in Modal Dialogs