Hot answers tagged

5

Workflows The last option I'd go with is the workflow: workflows are slow, buggy, do not work at all when there's a lot of them running, complicated to debug, and most of all they completely disturb the users since they're visible in the UI (with a messy UI). Why would a background task be visible in the UI? In adition, conceptually, your task is not a ...


4

There should be a tiny (i) like icon to the right of your library title. Click on that, and you should get the description!


4

The OData provider for the REST API is configured to limit the number of items in a response to 100. If there are more items the response will contain a continuation. In a JSON response the continuation will be a property named __next. var url = appUrl + "/_api/Web/Lists/getByTitle('Order Details')/Items"; var message = jQuery("#message"); ...


3

Their are couple of ways to see the description of Document Library. Method # 1 For all sharepoint versions, you can go to document library settings page and you will see the description on that page. this is for all versions of SharePoint. Method # 2 For SharePoint 2007 and 2010, you can see this, once you click on the document library, the description ...


3

You just need a small change to your PowerShell script. $web = Get-SPWeb http://webUrl $groupOwner = $web.SiteGroups["GroupA"] #this group will own "GroupB" $groupTarget = $web.SiteGroups["GroupB"] $groupTarget.Owner = $groupOwner $groupTarget.Update() For all groups in a web: $web = Get-SPWeb http://webUrl $groupName = "SharePoint Group Name" #this will ...


3

(A code-only option, as an extra, not necessarily a suggested answer but one for others who will in future come across this question) I'm surprised nobody's brought up the pretty awesome Patterns and Practices Remote Timer Job Framework https://github.com/OfficeDev/PnP/tree/master/Solutions/Core.TimerJobs.Samples Basically it's a .NET library that lets ...


3

To be honest, based on the requirements: Check if a column named "Review Date" of an item is met (Review date = today), and if so, to change the item status to be "In Progress". Then to send an email to the "Assigned To" user , that there is an item assigned to him with “Review Date” that have been met. I would go for a Workflow. Why? ...


3

Go to http://siteUrl/_layouts/15/people.aspx?MembershipGroupId=0. From here, you can delete a user from the Site Collection. It should be noted that the user will remain in the User Information List (dbo.UserInfo) table in the Content Database the Site Collection resides in. This is for referential integrity purposes. They are simply marked as deleted.


2

So first thing, you need to have the Microsoft SPLA to be in compliant for this type of solution. Second, you could limit access to specific groups via User Policies on the Web Application(s). If you're managing the SharePoint farm, you could install Active Directory Users and Computers on the SharePoint server and monitor that Security Group for user count. ...


2

The name of a content database is just a random generated name that does not have any type of function more than that you can't have 2 databases with the same name. (Every database has it owns unique ID, the display name is just there to make administration easier.) However you should name your content databases to something relevant to make it easier for ...


2

Instead of SPList you should use SPPictureLibrary. I mean SPList picLibCity = (SPPictureLibrary) spWeb.Lists["City"]; And instead of ImageURL, you should use ServerUrl. I mean foreach (var row in EmpList) { if (row.City!= null) { string group = row.city; SPItem lookupItem = picLibCity.GetItemById(group.LookupId); string ...


2

If you staying within same active directory then no need to worry about it. Whatever method you select either Content DB move or 3rd party migration. One thing, how you move your User profile service.https://technet.microsoft.com/en-us/library/jj839719.aspx?f=255&MSPPError=-2147217396


2

Calling SPLimitedWebPartManager.Web.Dispose() will dispose of the SPWeb object used by SPLimitedWebPartManager while calling SPLimitedWebPartManager.Dispose() would dispose the SPLimitedWebPartManager itself. Keep in mind that you should never dispose of objects you haven't created yourself! SPLimitedWebPartManager.Web is created by another object called ...


2

Make a GET request to the following URL, It will return all folders /_api/Web/GetFolderByServerRelativeUrl('" + libraryRelativeUrl + "')/Folders?$select=Name,ServerRelativeUrl Using jQuery function getFolders(libraryRelativeUrl) { var queryUrl = "/_api/Web/GetFolderByServerRelativeUrl('" + libraryRelativeUrl + ...


1

Disaster Recovery plan depend upon business requirement. First you have to setup your farm with high availability options Load balanced Web front end Redundant Search service server Always-On SQl Server. High availability is generally used to describe the ability of a system to continue operating and provide resources to its users when a ...


1

please check your IIS Server Security token service .If it is stopped click start option or try to restart the service. I have faced same issue long back and this option worked me. if it is not working for your scenario let me know.


1

For SharePoint 2013 you need to create a Results Source and configure query to search in particular library only and configure your Search Results Web Part to use your Results Source. There were Search Scopes in SharePoint 2010 to achieve this. But in 2013 the Search Scopes are replaced with the "Result Source". For details check this link: SharePoint ...


1

Pass the Language ID parameter to the below method sets the language of the new site SP.WebCreationInformation.set_language( <Language Id> ); createWebsite(1045); function createWebsite(languageId) { var clientContext = SP.ClientContext.get_current(); this.oWebsite = clientContext.get_web(); var webCreationInfo = new SP.WebCreationInformation(); ...


1

You need to reference Microsoft.Office.Word.Server which is located in the GAC (C:\Windows\Microsoft.NET\assembly\GAC_MSIL). It is not safe to reference Microsoft.Office.Interop.* assemblies in a server application.


1

Realize this is old but in the future if you get a correlation ID you can simply open the management shell (SharePoint) and type the following: merge-splogfile -correlation "your correlationID" -Path "C:\someDirectory\SomeFile.log This will scan the entire farm regardless of server count and write any entries to SomeFile.log where you can open it with ...


1

Resetting the environment with an iisreset did the job.


1

I'd almost forget about this problem, but accidently I'd found the way to solve it. The main difference between SP2013 and SP2010 - is javascript rendering! In 2013 - javascript is everywhere, and XsltListViewWebParts (classic list view) by default are rendering on client too. That's why Xslt-transformations for header working, but not visible! To see it, ...


1

After my testing I have detected the problem: control.IsIncludePathData = true; When you select from suggestions, control.Text contains something like this: label | GUID| GUID | GUIDSELECTED When you select from picker, control.Text contains: label | GUIDSELECTED So, you can avoid the problem with control.IsIncludePathData = false, or assigning the ...


1

I know you get the answer, here is my 2cetns on it. why i will get different content database when i create a new web application? and from where i can check this content database? Christoffer already explained it. SharePoint when create a content DB it puts guid in front of it, make it unique, you cant have two database with same name / id in the same ...


1

You can also try using the below powershell Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue #Get the Root web $web = Get-SPWeb "<a class="vglnk" href="http://sharepoint.crescent.com/sites/operations" ...


1

Users need to have access to the site. That's why there is a permission level called Limited Access. Looking at the description of the Limited Access permission levels, you’ll see that it allows users to access objects “when given permissions”. With that permission level they will be able to see the objects they can access, but not the site itself. Users ...



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