Allan Bowe
Allan Bowe

Reputation: 12691

Get value of sharepoint 2007 Author (created by) field

I am trying to set up a pass-through URL filter so that our Announcements page can be viewed showing results from just one person.

I am looking to build a URL as follows:

http://teamspace.intranet.group/sites/XXX/Lists/Announcements/AllItems.aspx?
&FieldName1=Author
&FieldValue1=????????

I am struggling to find the appropriate VALUE to place in the URL. Have tried domain/userid, the active directory user name / description, "firstname lastname", "lastname,firstname" (all with case sensitivity and url encoding) to no avail!

I do not have infopath or any web development products / special sharepoint connectivity. How can I figure out the value of the internal Author field for a particular user?

Upvotes: 0

Views: 750

Answers (1)

Francisco Aquino
Francisco Aquino

Reputation: 9117

Assuming this is SharePoint 2010, when you use the filter you need to pass:

?View=VIEWID&FilterField1=Author&FilterValue1=FULLNAME

You can see your full name by going to http://site/_layouts/userdisp.aspx?Force=True on the Name field.

You can get the view ID by going to it's settings.

The strange part is that you get all that navigating the filter UI.

EDIT:

Found an open 2007 site on the web, here:

https://portal.wusm.wustl.edu/mscits/tipjar/Lists/Team%20Discussion/AllItems.aspx?View={4534CB53-DB3F-46C3-8C8E-D6449EF15201}&FilterField1=Author&FilterValue1=Capkovic%2C%20Kathy%20%28MSCITS%29

The Capkovic%2C%20Kathy%20%28MSCITS%29 parameter is really just a URL encoded value for Capkovic, Kathy (MSCITS), you can decode it with javascript as in:

decodeURIComponent("Capkovic%2C%20Kathy%20%28MSCITS%29")

Upvotes: 2

Related Questions