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

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

Ways to redirect http requests in SharePoint

Using WebDav on IIS 7 to access UNC Paths