1

I am using SPQuery object and SharePoint list item having period inside its title field value. I tried many ways but no luck. Is it correct that CAML query filter not works with Period? OR I made any mistake in query. I also tried using U2U Caml Query builder and it also not showing result. Is there any work around. E.g.

<Where>
  <Eq>
     <FieldRef Name='Title' />
     <Value Type='Text'>Test.t</Value>
  </Eq></Where>
3
  • 1
    Have you tried wrapping the value in a <![CDATA[]]> tag, like <![CDATA[Test.t]]>? Jan 22, 2016 at 7:16
  • Yes I tried with CDATA but not wokring. Jan 22, 2016 at 7:17
  • 1
    Sorry Robert. It even does not need to use CDATA with period. It's working. I am executing query against Document Library and the list item is inside folder. I forgot to include "Scope=\"Recursive\"". My mistake. Jan 22, 2016 at 13:08

1 Answer 1

0

I have just tested this on SP2013 and it works with periods without problems, so it must be something else.

4
  • You are correct. Jan 22, 2016 at 13:08
  • 1
    Sorry. It's working. I am executing query against Document Library and the list item is inside folder. I forgot to include "Scope=\"Recursive\"". My mistake. Jan 22, 2016 at 13:08
  • @dhavalkariya you should really post your own answer stating what you did wrong and then mark that as the answer Jan 22, 2016 at 14:10
  • Okay. I thought this answer states correct too. I got your point. Thanks for pointing out this. Jan 22, 2016 at 14:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.