I have created an alert for a user against a list (more specifically, a document library).
I want the user to be notified of all changes regarding list items (documents) and not any sub folders.
What I've Tried:
SPAlert alert = new SPAlert();
alert.Filter = "<Query><Neq><FieldRef Name='ContentType' /><Value Type='Text'>Folder</Value></Neq></Query>";
All items (including folders) are included in any e-mail alerts to the user.
To clarify, when a folder is created within a doc library with an alert against it - the user should not be notified.
When a document is created in that same document library, they should be.
I've also tried:
<Neq><FieldRef Name='ContentType' /><Value Type='Text'>Folder</Value></Neq>
(Note the <Query>
tags have been omitted).
It is currently not an option to specify what content types I do want to include in the alert. I just want to omit any items of content type 'Folder'.