Questions tagged [best-practices]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
15 views

Disable Folders in SharePoint Online

G'day Guru's It seems it has been a couple of years since this topic was raised, and Sharepoint has changed a lot since then. I have turned off the 'New Folder' option in Advanced Settings for all ...
2
votes
3answers
107 views

Best Practice: Javascript Registration SP2007

There is always the ASP.net way of registering JavaScript on the page using the Page.ClientScript.RegisterClientScript() method, but I was wondering if there was a better way to register your ...
0
votes
2answers
90 views

SharePoint 2013 farm in a DMZ with ADFS/proxy

I am currently looking for some best practices installing a SharePoint 2013 farm (two WFEs, one App Server, one OWA, two SQL Server in failover cluster) in a DMZ. Both farms (internal and the one in ...
4
votes
2answers
1k views

SharePoint Framework: How to let modern web parts interact with each other?

How can web parts know of and interact with each other within the SharePoint Framework? Here's an example. Let's say we need: a search box web part search result web part a filter web part All ...
5
votes
4answers
2k views

Can SQL be present on the same server as SharePoint 2016?

I am trying to create a VM for SharePoint 2016. Can I have both SQL and SharePoint installed on the same machine?
0
votes
1answer
47 views

Should i use “using” inside event receiver

I'm confused if i should use the using statement inside an event because the event is "asynchronous" and the object can be disposed before ending the job. Or am i missing something public override ...
12
votes
4answers
9k views

Iterating through SPListItemCollection - why foreach is bad?

I have seen in different places that we should not use foreach to iterate through SPListItemCollection, but I can't find explanation, why? E.g. http://de.slideshare.net/ghurlman/sharepoint-...
3
votes
2answers
186 views

What the general health checks to be performed Pre and Post patching the SharePoint servers?

What the general health checks to be performed Pre and Post patching the SharePoint servers for SP 2013? Are there any recommended best practices?
23
votes
2answers
19k 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)...
0
votes
1answer
29 views

Department Blog Implementation?

I have a SharePoint Online Site Collection (Using Classic Team Experience) and for each of the company's functional areas we want to implement a blog. Is the best way to do this to create a blog ...
4
votes
1answer
365 views

Why do people prefer to use List Item Collection Enumeratror over the get_data method?

I wonder if anyone compared the two methods of handling ListItemCollection data in javascript: var enumerator = collection.getEnumerator(); while(enumerator.moveNext()) {var current = enumerator....
0
votes
1answer
717 views

SharePoint 2010 - Multiple sites vs Fine-grained permissions for document library

For 800 customers with each one having 5 document libraries, would it be better to create a one site with 800 x 5 document library or 800 sites with each one having 5 document libraries. Please ...
3
votes
2answers
688 views

Custom List - rename column “Title” or hide it then create a new dedicated column

Content Type "Item", used in Custom List, comes by default with the column "Title" in it. However in many cases, the name “Title” is meaningless to the purpose of the list. (in some cases the type of ...
2
votes
0answers
21 views

Looking for an optimal way to store user data collected by my sharepoint add-in

I am writing a Sharepoint Online add-in in c# that is supposed to collect data from multiple users and store that somewhere where only their version of the app and I can access it. To be more specific ...
1
vote
0answers
683 views

How to use Office UI Fabric Callout in SPFx WebParts?

I try to use a good pattern to use the Callout, for instance when hovering over a Persona element. Currently I do the following: _clientPersonaElement is a reference to the Element the Callout uses ...
1
vote
0answers
71 views

How to display read-only information on a webpart? ReadOnly TextField or Label?

I wonder if the Office-UI Fabric Label should only be used to label a field, like a TextField. Should read-only data be displayed in TextField with contentEditable={ false } and readOnly={ true }? ...
0
votes
2answers
1k 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 ...
2
votes
1answer
2k views

Which is best recommended approach for SharePoint 2013 Extranet setup, the reverse proxy option or using separate DMZ?

We are planning to set up a SharePoint 2013 extranet. I have gone through many helpful blogs on extranet setup and found that there are 2 options to achieve this in secure way. 1) Use Reverse proxy ...
1
vote
2answers
875 views

Roll up large amount of data from multiple lists

I have a site with several hundred of lists and over 100,000 items in total. I need a content roll up of the data to track the amount of items created per month/year. I already took a look into: ...
1
vote
0answers
753 views

Best practice to implement paging in rest api for Get Items Endpoint

I currently managed to do it with /GetItems(query=@v1)?@v1=${query}&$expand=${expand}&$top=${pageSize}&$skip=${top} I tried using skiptoken instead of skip but no skiptoken result is ...
0
votes
1answer
287 views

Best Practice Tips upgrade Win server 2010 to Server 2012 R2 along with SP2010

I have installed SharePoint 2010 in Windows server 2008 and i want to migrate to Windows server 2012 R2 Suggest any Pre-Cure step for Preventing from crash? I have All site collection backup from ...
1
vote
2answers
37 views

Where are Sandboxed solutions being used?

Within many of our SharePoint 2010 Site Collections, we have the Solution Gallery. Within these Solution Galleries, there exists Sandboxed solutions that are active and used with each Site Collection....
0
votes
3answers
246 views

Non sharepoint databases in same sharepoint sql server instance and issues?

we have a SharePoint 2010 farm and sql instance for this farm in a sql farm, and if create non-SharePoint related databases in same instance for SharePoint farm, is any danger / issues to SharePoint?...
1
vote
2answers
122 views

Query Sharepoint databases in production

what are the important reasons to not query sharepoint production databases , if we want to run even select sql queries is any issue to database? in a case if i want to do select query and want to ...
3
votes
2answers
4k views

Best way of getting SPWeb in Event Receiver [Best Practices]

what would be the best way of getting SPWeb and List in context below, specially when list title can be different for different cultural websites, private bool doesItHaveIt(...
2
votes
2answers
1k views

SharePoint Custom Module Development and Deployment

We're working on custom module (Information Management System) for SharePoint. The project file of this module is a Class Library which contains User Controls. The User Controls was based upon Smart ...
1
vote
1answer
3k views

Item level permission in Document library

I have a work staff of about 100 employees, with a supervising staff of about 6 people (its a team approach for supervision - meaning all 6 people supervise all 100 employees). I should also say that ...
3
votes
2answers
4k 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) for ...
2
votes
1answer
37 views

Top visited entries on site collection blogs

I want to develop a web part which shows the ranking of entries of a site collection. By now, I think a way to do this is to use a Javascript code added on the master page which adds a row to the ...
1
vote
3answers
151 views

Best practice for updating list data periodically?

I have a SharePoint list that contains a list of all of our company domains and their expiry date. I've been asked to have this list whois each domain periodically and update the expiry date within ...
1
vote
0answers
35 views

Multiple SharePoint Apps or Single SharePoint Apps per “Feature”?

I want to know what is the best practice for deploying a "Solution" in SharePoint Online. For example, if I want to create an "Employee Site with Leaves" in SharePoint Server 2013, when we did this ...
1
vote
1answer
1k views

Trigger a Workflow for every item in a list using PowerShell

What's the best way to go about writing a PowerShell command to activate a workflow for each item in a list? There's a million articles out there and I'm wondering what the best way is.
1
vote
1answer
95 views

Best Practices for small changes from Quality to Production

I am at a new job, and how they manage development and then deployment to production is strange. So, I was curious what is the best practice for this scenario? A user just wanted a form field to have ...
5
votes
3answers
2k 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
4answers
2k views

Best practice location to deploy CSS/JS/image files

For SharePoint development, I am used to placing all the images/CSS/JS files into the mapped layouts folder (..\Microsoft Shared\Web Server Extensions\15\TEMPLATE\LAYOUTS) using Visual Studio. ...
1
vote
0answers
84 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
114 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
33 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
76 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? ...
2
votes
2answers
3k 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
668 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
265 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
286 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 ...
5
votes
3answers
1k 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
239 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
164 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
395 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 Host ...
19
votes
4answers
15k 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 LogonUser(...
30
votes
7answers
7k 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
169 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 ...