CAML query not working

%3CLINGO-SUB%20id%3D%22lingo-sub-1420090%22%20slang%3D%22en-US%22%3ECAML%20query%20not%20working%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1420090%22%20slang%3D%22en-US%22%3E%3CP%3EI%20want%20to%20filter%20list%20items%20on%20the%20basis%20of%20sharepoint%20user%20group%20name.%3C%2FP%3E%3CP%3Eonly%20list%20items%20which%20having%20Value%20in%20Column-Vendor%20same%20as%20Sharepoint%20group%20should%20able%20to%20see%20that%20list%20item.%3C%2FP%3E%3CP%3EI%20am%20using%20following%20CAML%20query%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CMEMBERSHIP%20type%3D%22%26quot%3BCurrentUserGroups%26quot%3B%22%3E%3CFIELDREF%20name%3D%22%26quot%3BVendor%26quot%3B%2F%22%3E%3C%2FFIELDREF%3E%3C%2FMEMBERSHIP%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ebut%20its%20not%20working%2C%20I%20tried%20following%20also%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CMEMBERSHIP%20type%3D%22%5C%26quot%3BCurrentUserGroups%5C%26quot%3B%22%3E%3CFIELDREF%20name%3D%22%5C%26quot%3BVendor%5C%26quot%3B%2F%22%3E%3C%2FFIELDREF%3E%3C%2FMEMBERSHIP%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ebut%20still%20its%20not%20filtering%20but%20showing%20all%20list%20items%20for%20the%20user.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1420090%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3Ecaml%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ELists%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Highlighted
Contributor

I want to filter list items on the basis of sharepoint user group name.

only list items which having Value in Column-Vendor same as Sharepoint group should able to see that list item.

I am using following CAML query

 

<Membership Type="CurrentUserGroups"><FieldRef Name="Vendor"/></Membership>

 

but its not working, I tried following also

 

<Membership Type=\"CurrentUserGroups\"><FieldRef Name=\"Vendor\"/></Membership>

 

but still its not filtering but showing all list items for the user.

0 Replies