Search for list items by Created Date using caml

Hi all,
I'm trying to find list items with specific attributes using caml.
I created a caml query that uses Last_x0020_Modified and File_x0020_Size for searching items.
then i tried adding Created and Created_x0020_Date both either as Lookup or as DateTime to the caml.
But since i added Created/Created_x0020_Date my query fails with 500 Internal Server Error.
Can someone tell me what I'm doing wrong?
here is my complete Entity I'm sending to SharePoint 2013:
{'query' : { '__metadata': { 'type': 'SP.CamlQuery' }, 'ViewXml': '<View Scope="Recursive">
<Query>
<Where>
<And>
<Leq>
<FieldRef Name="Last_x0020_Modified" />
<Value Type="Lookup">2015-02-25T10:10:03</Value>
</Leq>
<Geq>
<FieldRef Name="File_x0020_Size" />
<Value Type="Lookup">1</Value>
</Geq>
<Leq>
<FieldRef Name="Created" />
<Value Type="DateTime">2015-02-25T10:10:03</Value>
</Leq>
<Eq>
<FieldRef Name="FileDirRef" />
<Value Type="Text">/sites/DennisDevSite/alib/Ordner1</Value>
</Eq>
</And>
</Where>
</Query>
</View>' } }
Thx in advance
Dennis

Try appending "Z" to DateTime. Change 
<Value Type="DateTime">2015-02-25T10:10:03</Value>to <Value Type="DateTime">2015-02-25T10:10:03Z</Value>
Blog | SharePoint Learnings CodePlex Tools |
Export Version History To Excel |
Autocomplete Lookup Field

Similar Messages

  • The values for list items of other data blocks are not getting displayed when executed.

    Hi,
        I have a new problem again.
        I am doing a new form in which there are around 8 blocks. All the blocks have their tables in the oracle database.
        Each block has 18 columns with the same column & column names. But the values in those columns are different & the values do not match.
        The problem lies while i execute the form, it populates only the first block data. Other blocks do not display or populate the values.
        I cannot create a master relationship because all the column values are different.
        How do i display or populate the values of all the tables?
       Please help me. Thank You.

    hi
    if your form has truly disassociated tables, then you could simply use a key-exeqry trigger at forms level to travel to each block in turn and perform an execute-query built-in, eventually returning to the starting block.
    ie
    go_block('..');
    execute_query;
    go_block('..');
    execute_query;
    etc
    go_item(......);
    In this case you would use the block where clause to constrain each table to the appropriate set.
    If however, the database has no relationships between the tables but the data content has some corelation, then you could craft a forms relation manually.
    cheers
    Rod

  • Can we create a list item as a data block item?

    Hi,
    I have changed a text item to list item on the data block.
    This list item used to get populated when it was control block item, but after i changed it to data block item, it's not getting populated.
    My question is, can we create a list item(poplist) as a data block item?
    Any idea?
    Thanks in advance
    R.G

    Hi
    When you use ctl blocks data dose not fetch from Database. But in data blocks it get fetches when you execute query. So you have to make sure table column values are matching with the List Box values you have given.
    So please check table values.
    Nilaksha.

  • Workflow for list item cancels

    Hello!
    I create item in PWA list via timer procedure (c#).
    I have a workflow configured in SPD on item creation.
    In timer code I open a web from definet user, so item in list creates without any problem (author - this definite user), but workflow stops immediately with error:
    RequestorId: 47da81b9-1361-8e8e-2f05-c8376aa8939c. Details: System.ApplicationException: HTTP 401 {"x-ms-diagnostics":["3001000;reason=\"There has been an error authenticating the request.\";category=\"invalid_client\""],"SPRequestGuid":["47da81b9-1361-8e8e-2f05-c8376aa8939c"],"request-id":["47da81b9-1361-8e8e-2f05-c8376aa8939c"],"X-FRAME-OPTIONS":["SAMEORIGIN"],"SPRequestDuration":["29"],"SPIisLatency":["1"],"Cache-Control":["private"],"WWW-Authenticate":["Bearer
    realm=\"2185ffaf-5b35-41d5-89ac-85ba7fd54a3a\",client_id=\"00000003-0000-0ff1-ce00-000000000000\",trusted_issuers=\"00000005-0000-0000-c000-000000000000@*,[email protected]7fd54a3a\"","NTLM"],"X-AspNet-Version":["4.0.30319"],"X-Powered-By":["ASP.NET"],"X-Content-Type-Options":["nosniff"],"X-MS-InvokeApp":["1;
    RequireReadOnly"],"MicrosoftSharePointTeamServices":["15.0.0.4420"],"Date":["Fri, 12 Sep 2014 08:01:33 GMT"]} {"error_description":"The server was unable to process the request due to an ...
    When I run code with elevated privileges, workflow runs without error, but from system account (it looks like this, because workflow can't create Project from item and it creates tasks as Workflow, not as "Workflow from user").
    User profiles servises are running, I can find profile for user in central admin and c I can run full sync.
    I also have restarted IIS for1000s times...
    Help me please, how can I run workflow from specific user (I gave him even app admin permissions, but it still doesn't work)?
    From LOGS:
    The set of claims could not be mapped to a single user identity. Exception 3001002...
    The registered mappered failed to resolve to one identity claim...
    STS Call Claims Saml: Problem getting output claims identity...

    Hello!
    I have found solution.
    I have study dozen forums and sites about SP and this one
    http://stackoverflow.com/questions/6382583/use-credentials-to-interact-with-the-client-object-model-of-sharepoint gave me an idea.
    I had to rewrite my code. I set 
    using (ClientContext context = new ClientContext("http://yourserver/")) {
    context.Credentials = new NetworkCredential("user", "password", "domain");//here my code for list item creation}
    instead of 
    SPSite spsite = new SPSite(siteUrl, spusertoken);
    SPWeb web = spsite.OpenWeb();
    // and so on
    So, now SP has no problem with fiding initiator profile and workflows starts correctly automatically after an item was created.
    Maybe this solution could save somebody's day.
    Kate.

  • How to make a list item field with DATE data type?

    I have a column with DATE data type. Using forms 6i I want to generate a poplist list item field with this column while the value of the elements in the list to will be day names like SATURDAY,SUNDAY,MONDAY. if we change the data type from date to char, it will work properly but now with DATE data type behind it, it gives the following error message
    "FRM-32082: Invalid value for given item type.
    List WEEKREST
    Item: WEEKREST
    Block: EMPRESTS
    Form: MODULE3
    FRM-30085: Unable to adjust form for output."
    Using forms 6i how to make a list item field with DATE data type which can hold day names?

    Set your date column as a hidden (non-displayed) field. Create your list item with the varchar2 day names. Create the list item as a non-base-table field that accepts the text values of day names. On that field, create a when-validate-item trigger that translates the text into a real date, which it then uses to set the value of the actual base-table item.

  • Drop down list item to select date

    I am using oracle form 6i, i want to use drop down list item to select date
    I was able to manipulate my codes to get values for the three drop down list items year, month and day
    but at when list change trigger on month to populate day , it populated accordingly but at point if I selected other month, it added the days of the new month selected to
    the days of already selected month. And delete list_element command failed to provide solution..
    Can any one help me out -- <email address removed by moderator so that you won't get spammed for all Eternity>

    1976 as year and march as month
    declare
    last_date date;
    nDays number;
    cursor days(v_last_date in date,vnDays in number) is
    select first_day(v_last_date)+rownum-1 sdate from dual
    connect by rownum<vnDays+1;
    begin
    select last_day(to_date(monthITEM||yearITEM,'MonthYYYY')) from dual;
    // the month is in the monthITEM
    // the year is in the yearITEM
    // last_day will have the last day of that month.
    //now you have to find the no. of days.
    select to_char(last_Date,'dd') into nDays from dual;
    for dates in days
    loop
    add_list_element(listname,dates.sdate,dates.sdate,1);
    end loop;
    end;

  • FBL1N - field for open item at key date

    Hi All,
    we are developing a customising report like FBL1N.
    for vendor open itesm, we have table BSIK. In that table, we could not find field for open items at key date.
    Could you please suggest which field we can use in table BSIK for that.
    Regards
    Deepak

    Hi
    You may find a list of some famous  tables on FI.. honestly i do not know which one is the required ? \\
    Accounting documents
        BKPF                Accounting documents
        BSEG               item level
        BSID                 Accounting: Secondary index for customers        
        BSIK                 Accounting: Secondary index for vendors          
        BSIM                 Secondary Index, Documents for Material          
        BSIP                 Index for vendor validation of double documents  
        BSIS                 Accounting: Secondary index for G/L accounts
        BSAD               Accounting: Index for customers (cleared items)
        BSAK                Accounting: Index for vendors (cleared items)  
        BSAS                Accounting: Index for G/L accounts (cleared items)
    Regards
    Mahmoud EL Nady

  • No list elements defined for list item.

    hi master
    when i use list item and run then give this error
    FRM-30351: No list elements defined for list item.
    List PRODUCT_NO
    Created form file MODULE1.fmx

    Try posting your question to Forms

  • List item w/ multiple data items - how to select data items?

    I have a list component (myListBox) that is showing the
    labels for some data items read in from an XML file. Each item in
    the list has an associated name, description, and path (they're mp3
    files) and they are named accordingly in the XML tags.
    Using myListBox.selectedItem.label gives the correct label
    but myListBox.selectedItem.data is undefined. I've tried using the
    XML tags after the data selector (e.g.
    myListBox.selectedItem.data.path) but those don't work, either. All
    of the examples I've found in the docs show only a single data
    element associated with each list item.
    So, if a list item has multiple data items associated with
    it, how do you select them using the listBox.selectedItem property?
    TIA,
    rgames

    Q2. when I type "Oracle" in A long list item box, cursor is going to the initial character "O" , so I can find "Oracle" in A long list item box easily.Maybe , but of course your list gets smaller as you see only the entries starting with a "O" , except if there are entries in the list which all start with the letter "O" so the total number of entries in the list is equivalent to the number of entries start with "O"...!!!!!!!!!
    My greetings,
    Simon

  • Search for iTunes items by price

    Is it possible o search for iTunes items such as movies &amp; music by price? For example all the movies that are $6.99 or any other price by that matter, not just the few that iTunes has listed in their movies home page.

    The "big offer" IS what you are missing. The movies that are normally 9.99 being reduced to 4.99 for a limited time but unable to find them is counter productive on Apple's part. If you are going to put movies on sale, you need to have a way for people to find out what those movies are!
    It's like a store having a Black Friday Sale flyer with random products that are not on sale, but the store would like you to buy them. You can go to the store to find the Black Friday deals but you have to look at every product on every self in every isle to see if they have a sale sticker on them.
    That's how hard it is to find movies that are $4.99 on the iTunes Store now. I used to purchase 5-10 movies a month when the Limited Time $4.99 Movies was something you could just click and see. Now I buy maybe 2-3 movies because I hate clicking on every genre and then every movie in the genre to check the SD price because it only shows the HD and Rental prices in the genre lists.

  • How do i search for a photo album when i use the search facility on my iPad or iPhone it will not find photo albums of a given name can anyone help

    how do i search for a photo album when i use the search facility on my iPad or iPhone it will not find photo albums of a given name can anyone help

    Photo albums are not searched by Spotlight Search.  Go to Settings > General > Spotlight Search to see and reorder the available search items.
    For more details, see page 12 of the iPad iOS 5.1 User Guide

  • Create list item in parent site when list item is created in child site?

    SharePoint online - Can I create a list item in a parent site when a new list item is created in child site? Possible with workflows?

    Hi Shafaqat,
    From your description, my understanding is that you want to create a list item in the parent site when a new item is created in the subsite via workflow.
    Per my knowledge, there is no OOTB workflow action to achieve your requirement. I suggest you develop your own workflow activity to do it, or you can try to find a third party workflow solution to do it.
    Here is an article about how to create a custom workflow activity, you can take a look at:
    http://www.sharepoint-reference.com/Blog/Lists/Posts/Post.aspx?ID=37
    Best Regards,
    Wendy
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • API to search for PIM items

    Is there any API to search for an item in PIM. I have a requirement to search for item by Inventory Org, routing class, operation class and resource.
    thank
    satya

    Satya,
    I am not sure or aware of any API. This should be falling under the catalog functionality.
    But the functionality does exist in the front end in the PIM application (resp Product Information Management Data Librarian) there is a functionality of item search (you know that probably). You can explore the OAF pages and related VOs or implementations of that page.
    Thanks
    Nagamohan

  • OSS note 1480794 for  the "Steps to Create endpoints using a "Business Conf

    Hi All, 
    I am nearly complete with the Duet Setup Wizzard but I do still have a few red lights on my check tool.
    My main problem is:
    When I follow the instructions in OSS note 1480794 for  the "Steps to Create endpoints using a "Business Configuration Scenario" XML:"
    When I press activate I get the below errors:
    Unknown webservice definition with name CustomerERPBasicDataByIDQueryResponse_In_V2 / http://sap.com/xi/APPL/SE/Global
    Unknown webservice definition with name CustomerERPRelationshipContactPersonByIDAndContactPersonInternalIDQueryResponse_In / http://sap.com/xi/APPL/SE/Global
    Unknown webservice definition with name CustomerERPBasicDataUpdateRequestConfirmation_In / http://sap.com/xi/APPL/Global2
    Unknown webservice definition with name CustomerERPRelationshipContactPersonCancelRequestConfirmation_In / http://sap.com/xi/APPL/Global2
    Unknown webservice definition with name CustomerERPRelationshipContactPersonCreateRequestConfirmation_In / http://sap.com/xi/APPL/Global2
    Unknown webservice definition with name CustomerERPByIDQueryResponse_In / http://sap.com/xi/APPL/SE/Global
    Unknown webservice definition with name CustomerERPRelationshipContactPersonUpdateRequestConfirmation_In_V1 / http://sap.com/xi/APPL/Global2
    Unknown webservice definition with name MaterialBasicDataByIDQueryResponse_In / http://sap.com/xi/EA-APPL/SE/Global
    Unknown webservice definition with name ProductionBillOfMaterialVariantItemByVariantIdentifyingElementsQueryResponse_In / http://sap.com/xi/EA-APPL/SE/Global
    Unknown webservice definition with name ProductionBillOfMaterialVariantBasicDataByMaterialAndPlantQueryResponse_In / http://sap.com/xi/EA-APPL/SE/Global
    I have restarted the Wizzard a few times to check my setup and I cant find any steps that I have missed that would cause these error's.
    Hope you can advise.
    Many Thanks
    Mike

    Hi Sameh,
    do you want to go live with the full scope of Starter Service , or do you just needs part of it?
    With the steps outlined in the blog everything is 100% supported (this is not a hack, but just another way to configure Starter Services).
    However, not all the functionality of the Starter Services will work (e.g. like the Updating / Creation of a new contact). But if you do not need that you are perfectly fine.
    I remember that with EhP4 you need to be on SP06 of ECC-SE. Maybe this is also the reason in your case why the service is not available.
    Regards,
    Holger.

  • FRM-30351: No list elements defined for list item.

    Hello!
    i have a list_item with name NOMBRE and in a NEW_FORM_INSTANCE trigger i have the following pl/sql block to populate it:
    declare
         grp_producto recordgroup := find_group('RECORD_PRODUCTO');
         lst_item item := find_item('PRODUCTO.NOMBRE');
         status number;
    begin
         status := populate_group(grp_producto);
         clear_list(lst_item);
         populate_list(lst_item,grp_producto);
    end;
    when i run the form, this message appear
    FRM-30351: No list elements defined for list item.
    List NOMBRE
    and the list appear without elements
    ...can somebody explain me the solution or if i have to do another thing to populate the list?
    Thanks

    Hi Duncan!
    i rewrote the manually code and agregate the clear_list function that i think you refer with "Make sure that the block is empty before you do this". This work the first time but in the next time a change that i do in the database isn't reflected in the list, i think that my cursor mantain the old information, well, can you indicate me some way to clear the cursor or something similar? or explain me another solution?
    thanks so much!
    declare
    nombre_producto soportebwv2.producto.nombre%type;
    lst_item item;
    i number:=1;
    CURSOR cur IS
    select nombre
    from soportebwv2.producto;
    begin
    lst_item:= find_item('PRODUCTO.NOMBRE');
    clear_list(lst_item);
    open cur;
    loop
    fetch cur into nombre_producto;
    exit when cur%NOTFOUND;
    add_list_element(lst_item, i, nombre_producto, nombre_producto);
    i:=i+1;
    end loop;
    close cur;
    end;

Maybe you are looking for

  • Error message in 'new" Acrobat 5.0

    I just installed a new (to me) edition of Acrobat 5.0, running on Windows XP. Whenever I click the desktop icon I get the following message: You cannot currently view Pdf files from within your web browser due to a configuration problem. Would you li

  • Change network name

    When I set ip my Airport Extreme I created two network names (one primary and a guest network) using my full first and last names. For security and privacy issues I would like to remove the guest network account and change my primary account to somet

  • Is it possible to lock individual folders in snow leopard?

    can we lock each folder and set different passwords to them in snow leopard? - i have been searching the system and still cant seem to get it to work - there is an option for "lock" in the get info section, but when i hit the action preference on the

  • CANNOT CONNECT TO I TUNES

    HI THERE TRYING TO DOWNLOAD PODCAST APP TO ALLOW TRANSFER OF PHOTOS FROM P.C BUT KEEPS COMING UP AS "CANNOT CONNECT TO I-TUNES" ???? ANY SUGESTIONS.... FLATFOAL

  • Non-repeating fields?

    Hello! I'm trying to create a report (using BIP Desktop) that will print out an employee's first name and last name once but list all of the records associate with that employee. Ex (this is what I don't want): Smith Joe $1,200 Chicago Smith Joe $700