New answers tagged

1

The URL you should create is of the following format https://tenant.sharepoint.com/weburl/_layouts/15/User.aspx?List=LISTGUID&obj=FOLDERGUID,ITEMID,LISTITEM In this URL you should replace LISTGUID - with the guid of the list FOLDERGUID - with the guid of the folder ITEMID - with the ID value of the folder You can use below snippet to get the GUID ...


0

I discovered that if the library setting Make "New Folder" command available? is set to Yes, folders sort as described/expected: at the top of any ascending sort, or the bottom of any descending sort, except when Sort only by specified criteria is selected. But if Make "New Folder" command available? is set to No, then folders are sorted inline with ...


2

When you want to retrieve properties for a single item/folder/list/etc and not a collections of items/folders/lists/etc you need to specify properties like this: ctx.load(list, 'Name', 'Url', 'other_property_here'); Basically, you DON'T use Include(), but specify the properties as comma-separated arguments in the ctx.load() function.


0

Dan, not sure if you already found a solution. I have library with the same behavior. This is what I found so far: If I copy the library with ShareGate to a test site then folders are still in the bottom. If I manually create a new library in a test site and then copy my content types with ShareGate and then adds the content types to the library. Then ...


0

This script uses PowerShell to copy all files and folders from one document library to another document library. This script will allow you to copy an entire document library, along with user-defined metadata from one site collection to another. $ver = $host | select version if($Ver.version.major -gt 1) {$Host.Runspace.ThreadOptions = "ReuseThread"} if(!(...


0

Solved # public void ListFolders_CreateIfNone(string listTitle, string folderName) { using (var clientContext = OpenConnectionToSharePoint()) { var list = clientContext.Web.Lists.GetByTitle(listTitle); list.EnableFolderCreation = true; clientContext.Load(list); clientContext.Load(list....


0

If you mean the .RootFolder, then I will go with NO. That folder should get created when the library was created. If you mean any other folder, then your code should work: var i = folderCollection.Add(folder.Name); // is this the path to folder? the server relative url? i.Update(); //try rather clientContext.Load(i) clientContext.ExecuteQuery() If you ...


0

You can try this type of query: /_vti_bin/ListData.svc/ChildList?$expand=lookupcolumn_name$select=FieldA,FieldB You will get some reference from @wjervis's answer.


1

Another option is to use the Site Content & Structure tool that is available under Site Settings. On the Site Content and Structure page, select the item or multiple items to move. Click Actions, and then click Move. In the Move dialog box, select a destination and then click OK.


1

To do so, select a file located in a subfolder and drag&drop it onto the Document Library shortcut in the Left Pane. I found this video from European Sharepoint Community that explains very well how to do it. This video tutorial covers: moving a file from the root of Document Library to a subfolder in the same Document Library, moving a file from a ...


0

I tried asking around in other forums, and was told that this happens with folders by design, and using document sets instead would be a good workaround. The document sets seem to be working so far, so I think that's what I'll use. Thanks for everyone's help! Source: https://social.msdn.microsoft.com/Forums/sharepoint/en-US/3ebdb5e2-5d42-4817-a779-...


1

You will need to break the URL apart. The item url is basically list/folder[x]/item. Credits to Bunzab


0

As per your requirement there is no direct solution there is a work around you can do, you need to create any document library name it as X and follow the steps below: Enable content organizer feature on site. That will create a Drop off library on site which will be used to route the documents to your specified folders. For content organizer here is ...



Top 50 recent answers are included