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>
  • 1
    Have you tried wrapping the value in a <![CDATA[]]> tag, like <![CDATA[Test.t]]>? – Robert Lindgren Jan 22 '16 at 7:16
  • Yes I tried with CDATA but not wokring. – Dhaval Kariya Jan 22 '16 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. – Dhaval Kariya Jan 22 '16 at 13:08
0

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

  • You are correct. – Dhaval Kariya Jan 22 '16 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. – Dhaval Kariya Jan 22 '16 at 13:08
  • @dhavalkariya you should really post your own answer stating what you did wrong and then mark that as the answer – Robert Lindgren Jan 22 '16 at 14:10
  • Okay. I thought this answer states correct too. I got your point. Thanks for pointing out this. – Dhaval Kariya Jan 22 '16 at 14:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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