SharePoint Create New Folder Programatically – 0x8007007b Exception

When you are creating New Folder in SharePoint list through UI, SharePoint automatically trims white-space from folder names. But, if you attempt to create New Folder programatically, an Exception can occur: This error means: The file name, directory name, or volume label syntax is incorrect. You can simply trim white-space from folder name and the … Read moreSharePoint Create New Folder Programatically – 0x8007007b Exception

Move existing SPListItem to new location

Almost every SharePoint developer knows popular SPFile.MoveTo method. But, in certain cases, you have only SPListItem, and you need to move it to new destination. One of the possible solutions is to make a fake SPFile from this SPListItem, and move the fake SPFile. Another solution could be to create new SPListItem in desired location, copy metadata and remove … Read moreMove existing SPListItem to new location

SharePoint REST GetItems with Anonymous Access – ApiBlockedException

When you have your SharePoint application enabled with Anonymous access, often can occur the exception: This is, because some Rest methods can be disabled on web application scope. You can run this commands, to show list, which methods are not approved: Line MethodNames indicates, that GetItems and GetChanges are forbidden on SPList object. You can … Read moreSharePoint REST GetItems with Anonymous Access – ApiBlockedException