My scenario is i have 2 lists: company and domestic
whenever i create a new company a remote event receiver fires and create a folder in domestic.now when am trying to update an item in company,i added another event receiver to replicate the change to the folder in domestic.
I am having some issues with updating item:
- By code am reading the value of the folder name in the edit form page which am using
to get the folder object in domestic list. BUT obviosly it tell me the
folder doesnt exist because the name hasnt been updated yet in domestic list.
- IF the above is solved i want to know how to remove all users having permission on that folder
some code snippets:
string folderSetUrl = CompanyType + "/" + CompanyName; Folder companyfolder = clientContext.Web.GetFolderByServerRelativeUrl(folderSetUrl); companyfolder.ListItemAllFields.ResetRoleInheritance(); clientContext.ExecuteQuery();