Loading...

CAML Filter doesn’t work

Title

CAML Filter doesn’t work

Description

Please wait...

A CAML filter that references the currently logged on user using the   extended value <CurrentUserID /> as per the documentation does not work.
The filter returns no rows of data.

The documentation states the following:


The CAML Filter in Quest List View and Quest Calendar View may contain the following extended values:

  •  <CurrentUserName /> – This element will be replaced with the display name of the current user. For example: John Smith
  •  <CurrentLoginName /> – This element will be replaced with the login name of the current user. For example: domain\johnsmith
  •  <CurrentUserID /> – This element will be replaced with the ID of the current user. For example: 1
  •  <CurrentUserEmail /> – This element will be replaced with the email address of the current user. For example: johnsmith@domain.com

Cause

The space before the slash '/' in these extended values should not be there in order for the CAML filter to work.

Resolution

WORKAROUND

Remove the space form the extended value. For instance, <CurrentUserID /> should become <CurrentUserID />.

STATUS

Waiting for a fix in a future release (4.2)  of Development Studio for SharePoint. The fix will allow for a space to be permitted.

Defect ID

The space before the slash '/' in these extended values should not be there in order for the CAML filter to work.

Leave a Reply