Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var clientContext = new SP.ClientContext.get_current();
- var web = clientContext.get_web();
- var allLists = web.get_lists();
- listnames = ["List 1", "List 2"]; // Array of list titles
- var listArray = [];
- for (var i = 0; i < listnames.length; i++) {
- var oList = allLists.getByTitle(listnames[i]);
- listArray.push(allLists.getByTitle(listnames[i]));
- clientContext.load(listArray[i]);
- // Throws error
- //clientContext.load(listArray[i], "Include('ListItemEntityTypeFullName')");
- }
- clientContext.executeQueryAsync(function (sender, args) {
- debugger;
- // Fetch the ListItemEntityTypeFullName by below command
- listArray[0].get_listItemEntityTypeFullName();
- }, function (sender, args) {debugger});
- {
- value: Array<{ ListItemEntityTypeFullName: string }>
- }
Add Comment
Please, Sign In to add comment