good day !
i have a list. i created some folders in it. on quick edit put some fields values at folder.
Now i open 1 folder and create new item. how can i get values from this parent folder? like folder name, and 1-2 fields values?
Folders
Dear @ixxxl,
Not sure what information you want to get, but here's what you can do:
var list = pnp.sp.web.lists.getByTitle("Documents");
list.rootFolder.folders.get().then(function(folders){
for(var i = 0; i < folders.length; i++){
var folder = folders[i];
if(folder.ServerRelativeUrl == fd.rootFolder){
console.log(folder);
}
}
});
another user , from main office, will create in this folder some simple items. and to not write manual cod department, i would like to take it from the folder.
create item in folder:
and on new item to populate 2 fielnds title folder ,and cod of department (stored in folder). This i need to put this cod in field group, to make AD groups to grant permissions on future list and library items , and to notify them.
Dear @ixxxl,
This shouldn't be the case, but it's always to have some down time to do some quick tests. Make sure to follow all the steps in the instruction and update both Server side solution as well as the app package in the app catalog.