Skip to main content

Timeline for CAML query using 'contains'

Current License: CC BY-SA 3.0

11 events
when toggle format what by license comment
Sep 13, 2016 at 10:53 vote accept Vignesh Subramanian
Sep 13, 2016 at 9:54 comment added Gaurravs Let us continue this discussion in chat.
Sep 13, 2016 at 9:53 history edited Gaurravs CC BY-SA 3.0
Update
Sep 13, 2016 at 9:53 comment added Gaurravs 2 </Contains></Contains> was a typo.. updated answer
Sep 13, 2016 at 9:52 comment added Gaurravs only 3 which added is sufficient, This condition you mentioned represents, user id must have comma in first and last position
Sep 13, 2016 at 8:30 comment added Vignesh Subramanian may be I have construct the csv like ,name1,name2,name3 etc so that I can just check for one contains with ","+name+","
Sep 13, 2016 at 8:26 comment added Vignesh Subramanian "<Contains><FieldRef Name='OtherUsers' /><Value Type='Note'>," + site.CurrentUser.Name + "</Contains></Contains>" this condition is true?
Sep 13, 2016 at 8:25 comment added Gaurravs no it will not fail, it will work
Sep 13, 2016 at 8:23 comment added Vignesh Subramanian excellent workaround, may be when user1 logs in and OtherUsers = "user12,user11" the condition might fail?
Sep 13, 2016 at 7:51 history edited Gaurravs CC BY-SA 3.0
Update
Sep 13, 2016 at 7:44 history answered Gaurravs CC BY-SA 3.0