CAML Queries (Display vs Internal) Field Names in 2010 - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

CAML Queries (Display vs Internal) Field Names in 2010

Last post 03-11-2013 03:35 PM by Hilary Stoupa. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 03-11-2013 12:39 PM

    CAML Queries (Display vs Internal) Field Names in 2010

    I trying to execute a CAML Query (using SPQuery) and the fields in my Where clause have spaces in them.  One of the fields has a Display Name of "Form Type".  I have tried "Form Type", "Form_x0020_Type" and "Form%5fx0020%5fType" in my code but my queries do not work.  When I use internal field name the queries work.  The "Form Type" field is not a renamed title field.  I'd prefer to use the Display Name in my query because the it's the same in both my development and production environments.

    Is there something obvious that I am missing? Am I being dopey because I'd like to use the Display Name?

    Thanks.

    Filed under: , ,
  • 03-11-2013 03:35 PM In reply to

    Re: CAML Queries (Display vs Internal) Field Names in 2010

     You aren't silly for wanting to do this - but sadly, it just isn't the way the UpdateListItems web method works. I don't think there is any option to switch to using the display name.

    Hilary Stoupa

Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.