Hot answers tagged

3

Turns out, the comment is very important. My previous comment was "Checked in during Migration." I believe the extra "." was causing the issue. When I changed the checkin comment to "Migration", it worked. Keep the comment simple.


2

This functionality will not work in Chrome. You'll need to use IE or FireFox.


2

To my understanding, when you enable rating feature in a list/library, Rating (0-5) column, a Number of Ratings column is also added to the list. Hence these columns will be associated with each list item. Technically, when a user (consider the user has contribute access) gives a rating to a document, the columns related to rating feature gets updated, which ...


2

If this is a custom webpart, the custom code is running with System Account and is modifying the changes as per the code. If it is a client side code, you need to pass Credentials through Client context object. It will be something like this: using (ClientContext context = new ClientContext("http://yourserver/")) { context.Credentials = new ...


2

Doing this using the Client Object Model would be much easier. Unless you have a reason that you absolutely need to use the REST API, I suggest you switch. That said, here's the code you need to create a list using the REST API: private ICredentials creds = new NetworkCredential("username", "password", "domain"); private string GetFormDigest() { var ...


2

Sample code to create document library . url: http://site url/_api/web/lists method: POST body: { '__metadata': { 'type': 'SP.List' }, 'AllowContentTypes': true, 'BaseTemplate': 101, 'ContentTypesEnabled': true, 'Description': 'My list description', 'Title': 'Test' } Headers: Authorization: "Bearer " + accessToken X-RequestDigest: form digest ...


2

One of my favorite ways to automate repetitive tasks is to use PowerShell + CSOM. The Client Object Model allows me to run my scripts on top of on-prem SharePoint or Office 365 using the exact same code, so I don't have to migrate it in order to make it run in one or the other. Here is an example of how you use the client dll in a PowerShell script to ...


2

I have modified the script from this URL to adjust with your requirements ######################## Start Variables ######################## ######################## Varun's Script###################### $destination = "C:\\tools\\Folder" $webUrl = "<Url of the specific site>" $listUrl = "<Url of the specific list. This url is complete Url and NOT ...


1

Here is a formula you can use in the calculated field (Status): Set the Data Type of the column to Number and add this formula: =IF(ISBLANK([Expiration Date]),"No Expiration", "<img src='/_layouts/images/blank.gif' onload=""{" &"var date=new Date();" &"date.setFullYear(" &YEAR([Expiration Date])&"," &MONTH([Expiration Date])-1&","...


1

As mentioned, the answer is No. However, there is a workaround which change the default behavior of documents to open in the client application Word instead of Word Online. Head over to Site Settings > Site Collection Features and look for the feature Open Documents in Client Applications by Default. Activate it, and users clicking document links would ...


1

Another workaround is to take the complete site backup. Then restore it in Production as a different site. Then use Content And Structure to move the libraries to proper place.


1

This is what you need to use: <your_site_url>/_api/Web/Lists?$filter=BaseTemplate eq 101. The base template 101 is for document libraries. For other types of lists, check the base templates here: https://msdn.microsoft.com/en-us/library/microsoft.sharepoint.client.listtemplatetype.aspx There is no built-in functionality to get only the libraries ...


1

Finally after working more than 2 days I found the solution. Actually I was making a mistake in using GetFileByServerRelativeUrl() method. I was using url as: var url = siteUrl + "_api/Web/GetFolderByServerRelativeUrl('" + libraryName + "/Tss_RootFolder/" + documentSetName + "')/Files/getbyurl(url='" + fileName + "')/listitemallfields"; I just changed ...


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 ...


1

It seems you are running the upload document code using elevated privileges. First you should remove that and use impersonation. In order to impersonate another user you should get the token first using SPUserToken userToken = web.AllUsers[user].UserToken; Then you can create SPSite SPSite site = new SPSite(siteURL, userToken); From this point all ...


1

OK, if we don't have tagging and we don't have Designer for custom scripts, then we are left with some workaround. We can have a column as Mark with radio button Yes or No. User can select Yes to mark the particular document. Once marked, we can have a view to filter data based on MARK column and can show data with MARK as yes on a webpart. Other than this ...


1

Create a group add the user with edit permission. You can give the unique permission level to that library or document.


1

I just came across this issue. This appears to be a limitation whereby SP.Utilities.CommandBlock does not get loaded to a published page in view mode. It will work for site collection admins, but not for owners/members/visitors. For non-site coll admins, the workaround is to check out the page, and then perform the drag-and-drop upload.


1

I think you are using SharePoint Online 2013, In that version Microsoft introduced Drag and Drop feature for pull items into document library. While doing this action, the new form with other metadata columns are not shown. You need to go to particular item and edit the properties of the dropped item in document library.


1

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


1

or just edit view aspx in designer and add LinkToItem="TRUE" for the desired column example: <ViewFields> <FieldRef Name="DocIcon"/> <FieldRef Name="Title" LinkToItem="TRUE"/> <FieldRef Name="field3"/> <FieldRef Name="field4"/> <FieldRef Name="...



Only top voted, non community-wiki answers of a minimum length are eligible