A "best practice" is a method or process that practitioners recognize (usually through experience and research) as being more effective at getting the job done than other methods (or processes).

learn more… | top users | synonyms

1
vote
0answers
17 views

structuring Javascript for sharepoint code

I have been reading many articles and going through many video tutorials, they explain almost all patterns from javascript (Module pattern, Prototype pattern, Revealing Module pattern and etc) with ...
1
vote
0answers
11 views

Best practice for re-using the SPWeb object across code layers/services

I have several services that use the SPWeb object. These services are called to perform various functions, sometimes completely unrelated. i.e. an AuthenticationService uses SPWeb to get information ...
0
votes
1answer
9 views

Can an AD group be added to Visitor Group, with the same users being assigned to the Owners and Members Group?

This is going to seem like an incredibly simple question, as I know users can already exist in multiple groups (and I know it's best practice for them not to do so where possible). I am very new to ...
0
votes
1answer
31 views

How to manage contenttypes in a ContentTypeHub

Setting up a contenttypehub is (relatively) easy. But how do you manage the contenttypes in the hub correctly. What are the best practices to keep the hub manageable and the ContentType up to date? ...
1
vote
2answers
50 views

Creating multiple PWA instances in the same farm

I need to provision multiple PWA instances in the same farm. My business requirement is, i have more than 100 branches and i suppose to create an individual PWA instance per each branch, but i need to ...
1
vote
1answer
47 views

Best practices for Sharepoint 2013 3 tier installation

I have 3 servers WFE server Application Server Database Server I am using Windows 2008 R2 and SQL server 2008 Assuming SQL Server 2008 is installed with a Server account E.g. SQL_service, can ...
1
vote
2answers
48 views

Best practices for creating views or separate lists?

Is there a best practice that can be said for whether to add a tag and have users filter on it or just create a separate list? We have many groups in our SharePoint application that all have many ...
2
votes
3answers
277 views

Best way to build out and configure multiple lists

So, once you have your SharePoint site all planned out, what is the generally accepted or best way to start building out and configure multiple lists, document libraries and content types? Using the ...
4
votes
3answers
854 views

Unit testing web parts

I've read the articles from Andrew Woodward (21Apps) trying to get started with unit testing on WSS, but when I try something more advanced, like Webpart connections, I don't know how to start ...
0
votes
1answer
22 views

SQL server WSS_Logging fragmentation

We are running SP2013 on SQL Server 2014 (setup with a Available Group) and we use a tool called SQL spotlight to monitor the health of our SQL servers. It constantly complains that many of the ...
0
votes
1answer
35 views

Sharepoint CAML best practices

Can I write a CAML query inside a for loop? Copied from comment I have a funds list which displays funds and user name. I have populated a DataTable into a GridView and able to display all the data ...
0
votes
1answer
72 views

Writing sharepoint CSOM applications best practices

What is the best way to write sample snippets of code Visual studio 2012- Create a SharePoint App project. Issue :-Every time you need to query the list on the host web you need to query the ...
11
votes
4answers
5k views

Best way to Impersonate in SharePoint

So far, I am aware of below 3 ways of performing impersonation in a SharePoint web part or page : Using Win32 API [DllImport("advapi32.dll", SetLastError=true)] public static extern bool ...
24
votes
7answers
6k views

List of best practices on structuring SharePoint 2010 solutions

I am looking for good guidance on how to structure a SharePoint Solution including: Visual Studio Project Structure Features (how to separate features) Namespaces When to use multiple project ...
0
votes
1answer
74 views

Custom Workflow Activity vs Web Services in SharePoint 2013 Workflow

I am working on a SharePoint 2013 workflow project which needs some business logic. In SharePoint 2013, workflows are declarative. So to write a custom code, its advised to create a web service and ...
1
vote
0answers
21 views

How to let users discover sites they don't have access to?

What is the best way to make users aware of existing sites (they don't have access to)? We have this scenario: In our organisation everybody is allowed to create team sites for ad hoc collaboration. ...
0
votes
2answers
188 views

Sharepoint public site topology and best practice

I would like to have somes informations about internet public site. What topoly is recommended ? (extranet topology seems to be the best). Is there best practice about sharepoint configuration ? ...
0
votes
0answers
16 views

Using SharePoint exception handling in hybrid application

I am struggling to figure out a way to handle exceptions in my application. My application is Hybrid and mainly a .Net application that uses SharePoint 2010 for document management only. I want to ...
2
votes
2answers
36 views

How many web app's

I'm certainly a newby in SharePoint but my company give me the great task to deploy it. It's a SharePoint 2013 standard installed onPremise. Our goal is to build some team sites plus personal sites. ...
6
votes
5answers
2k views

What is the best practice for redirecting users when sites are being upgraded?

We have an upgrade to an application coming up which requires a site collection to be deleted and recreated. In terms of managing the existing users experience during upgrade what would be the best ...
1
vote
1answer
38 views

Sub-sites as records

I have been sent a solution proposal from a company on how they would build their Sharepoint site. We need to have a place to store information about a business deviations, such as name, ...
1
vote
1answer
7k views

How to run a popup window from code behind in web Part writen in C#

I must run a popup warning when somebody exceeds some value. I tried a SharePoint Modal Popup using JavaScript, but I don't know how to run something from code behind with JavaScript and a SharePoint ...
1
vote
0answers
90 views

Customizing social features in 2013

I'm looking at making use of the social features in 2013 but would like to tailor the UX / behaviour in some cases. I noticed that Microsoft advise against customization - ...
0
votes
1answer
46 views

Why do we need to strong name and mark webpart as safe?

We are using SP2013 and developing webparts for clients to be used in the intranet portal. We create the webpart, implement the logic and publish the wsp and install it on clients server. I want to ...
0
votes
1answer
74 views

SharePoint 2013: Forced to have an App tile? Or Re-design?

Do anyone know of a way to hide an app tile, it appears that we are forced to have one with each app we install? For example, I just want to deploy a Remote Event Receiver to a site. Create a ...
9
votes
2answers
3k views

SharePoint 2013 CSOM: Is it better to pass a Context object around or a Url?

In SharePoint 2013 CSOM is it better to pass a Context object around, or a Url to open a context? Which would be the best example: (Please consider there may be a lot of methods preforming tasks) ...
1
vote
1answer
3k views

PowerShell code to add/remove, install/uninstall and enable/deactivate feature at Web, Site Collection, Web Application and Farm scope

Please can you give me the best practice PowerShell code to:- A. Add, install and enable feature at -Web -Site Collection -Web Application -Farm scope B. Deactivate, Uninstall and Remove ...
0
votes
1answer
348 views

What is difference between SPSite.Url and SPSite.RootWeb.Url

What is difference between: SPSite.Url SPSite.RootWeb.Url If both are same, Which is considered to be good practice?
1
vote
2answers
41 views

Is there a way to upload a document from one document library to another on different farm?

we are planning on a publishing functionality for our SP2013 site. (please note that we are not using the cross-site publishing feature, but ideally we are implementing similar concept) There are 2 ...
2
votes
2answers
890 views

Best practice to add list item in SharePoint Server OM?

from the below codes, which one is best practice and performance wise also:- CASE 1: using (SPSite oSPsite = new SPSite("http://website url/")) { using (SPWeb oSPWeb = oSPsite.OpenWeb()) { ...
2
votes
1answer
52 views

What is good practice to log information in SharePoint?

We are creating a timer job that imports AD users into SharePoint list. I would liek to log this information somewhere so that at a later time I can check which users were pulled in and/why the ...
2
votes
1answer
937 views

Can we access list from other site collection sites using javascript object model?

ECMAScript object model can only be used in SharePoint sites. So you can’t use this object model in an asp.net site to access SharePoint resources deployed in another url as this is cross-site ...
0
votes
1answer
214 views

SQL TempDB size

I've read it on a number of different sources, and saw it presented by multiple people at different events: "Temp DB should be pre-sized to 20% of your biggest content" As I'm doing a 2010 farm ...
0
votes
1answer
105 views

Coding best practice display name vs internal name in itemUpdated event receiver

In an itemupdated event receiver, when referring to list fields, is it better to use the field's internal name, or its display name? Is there a clear guideline or best practice, or is this a ...
0
votes
1answer
239 views

Do we need separate Unattended service account for each SharePoint Server 2013 BI service applications?

SharePoint 2013 - I'm planning to use 'unattended service account' method of Secure Store Service - for Excel, Performance Point and Visio services. I'm about to create Active directory accounts for ...
1
vote
2answers
925 views

New-SPContentDatabase vs Mount-SPContentDatabase

We pre-create our SharePoint content databases in SQL, so we can distribute database files among disks and tune some parameters on the SQL Server side. Then we convert the SQL databases into ...
0
votes
1answer
310 views

Keep major version when working on minor version

My situation is this; I have a document library that contains reports (InfoPath 2010 forms). When an item is submitted it should clearly be marked as un-approved until it has passed an approval ...
0
votes
1answer
1k views

Distributed Cache Service Accounts

Recently saw a health warning in my 2013 CA that stated: The farm account is used for the SharePoint timer service and the central administration site, it is highly privileged and should not be ...
3
votes
1answer
2k views

Web Application or Site Collection Architecture for My Sites in SharePoint 2013

I am designing a solution for our client which have the following 'Areas' Teams Committees My Sites Projects (MS project server) Apps I see the best approach is creating a Web Application (WA) ...
0
votes
1answer
36 views

What is the proper method for installation of a team site with custom solutions?

What is the proper method for installation of a team site that has parts and webparts configured using PowerShell as well as six custom C#.NET applications for select webparts? Should I make a ...
0
votes
1answer
103 views

Best practice in SP2013 for simple ASP.NET functionality?

Disclaimer: I am not a Sharepoint developer, but I know my way around ASP.NET fairly well. I have inherited a simple ASP.NET web forms page (one .ASPX and a code-behind) in our current Sharepoint ...
0
votes
2answers
746 views

SP 2010 - to BLOB or not to BLOB?

Here is my situation: We are working on a scan-to-SP solution for our remote locations. The scanning will take place throughout the day/night. Our current estimated Total Daily Scans will number ...
0
votes
1answer
136 views

Dependencies in the jscript file

Lets say, I have custom-dialog.js that depends on custom-notifier.js and this one depends on sp.js. What's the best practises to write dependencies inside mine custom .js files?
1
vote
1answer
1k views

Are there best practice or coding standards documents available for SharePoint

Is there any official Microsoft coding standards and best practices documentation for SharePoint?
7
votes
5answers
4k views

Best practices for building a SharePoint Extranet

What are the best practices when it comes to building a SharePoint Extranet? Any good resources out there? One question that I am particularly looking for some thoughts on is how to best create a ...
0
votes
2answers
1k views

Best practice for public facing website

I am getting lost in the Sharepoint universe and I need someone to point me in the direction of an easy guide to setting up a public facing website collection following best practice. We have ...
0
votes
2answers
95 views

Sharepoint Development Process Best Practices

I would like to ask some simple questions regarding the best practices of Sharepoint 2010 development process. 1) I am supposed to maintain and add new sites to an already installed Sharepoint site. ...
11
votes
2answers
1k views

“Best Practices” for SharePoint customizations/development to easily migrate to new SharePoint versions

Do you know of any documents that describe “best practices” for SharePoint customizations (especially custom developments) in order for these customizations/code (for example web parts, event ...
2
votes
2answers
761 views

(De)Commission SharePoint Database Servers

In our SharePoint Farm, We are running with 2 Database Servers and on which we have 20+ Databases.Now, due to some issues we would like to decommission the existing database servers and commission 2 ...
6
votes
2answers
219 views

Best Practice changing usernames for Sharepoint 2010

We are using SharePoint 2010 Enterprise and have a User Profile service set to synchronize against AD DS. When a user's username changes, because of marriage or mis spelling, there are a set of ...