I'm trying to get the properties of the subfolders using jsom. Let's say: name, url, etc
I'm using this:
... var ctx = new SP.ClientContext(currentSite); web = ctx.get_web(); list = web.getFolderByServerRelativeUrl(subfolderURL); ctx.load(list,'Include(Name)');
And I'm getting the following error:
If I try to load the subfolder only:
I don't have the error but I'm not able to access the properties of the subfolder.
Am I doing something wrong?