-
-
Save RyanABailey/6f034e52bec4d02dfb7d to your computer and use it in GitHub Desktop.
CSOM Access List
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var clientContext = new SP.ClientContext("/"); | |
var web = clientContext.get_web(); | |
var list = web.get_lists().getByTitle("List Name"); | |
var camlQuery = new SP.CamlQuery(); | |
camlQuery.set_viewXml('<View><Query><Where><Eq><FieldRef Name=\'FieldName\'/><Value Type=\'Text\'>X</Value></Eq></Where></Query></View>'); | |
var items = list.getItems(camlQuery); | |
clientContext.load(items); | |
clientContext.executeQueryAsync(functionSuccess(), functionFailure); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment