1

I'm trying to view only items without folders, here is my code to create listview

Items = function () {
    return {
        "Title": "Items",
        "DefaultView": "false",
        "Hidden": "false",
        "RowLimit": "30",
        "Query": "<OrderBy><FieldRef Name='Modified' Ascending='FALSE' /></OrderBy>",
        "ViewFields": [               
            {
                "Name": "Modified"
            },
            {
                "Name": "Editor"
            },
            {
                "Name": "_UIVersionString"
            }
        ]
    };
}

any idea how to set scope to Recursive... I'm working on SharePoint 2013

1

Can you try

"Scope" :1

DefaultValue = 0, Recursive = 1, RecursiveAll = 2, FilesOnly = 3

Reference

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.