Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [patterns-and-practices]

Design patterns describe common issues that occur repeatedly in application design and development and provide techniques for handling these issues. Patterns also describe the current industry practice for resolving architectural issues and for handling the design complexity demanded of applications.

2
votes
0answers
830 views

How to get workflow with powershell?

In SharePoint 2013 on-prem I provision custom workflows (.xaml - definitions) to SharePoint sites by using office dev-PnP. I add the workflow to a spesific list in all sites, and the workflow works ...
-1
votes
1answer
329 views

Powershell PnP error converting Microsoft.SharePoint.Client.Web object

I am trying out Franck Cornu's O365StarterIntranet, from Patterns and Practices (PnP). I have updated to the latest PnP powershell Online, the latest SharePoint Online SDK. Most of the things work ...
1
vote
0answers
265 views

Copy users between sitecollection in client side object model

I invite external users to a site collection named "Extranet" in my Office365 tenant and needs to give them access to a list in another site collection so I'm doing a timer job for that. My problem ...
1
vote
1answer
55 views

app-only rights to create sitecollections

I'm using the PnP framework and want to do a app-only authentication against the mytenant-admin.sharepoint.com site so I can create sitecollection but I dont know how to give the app rights to the ...
3
votes
0answers
59 views

The Repository Pattern , refactoring code

I'm trying to develop simple sharepoint application using the repository pattern.Application should return employee informations from SPList based on some queries and than show them into HTML table(I'...
2
votes
1answer
1k views

Creating a lookup list field with OfficeDev PnP Provisioning Engine

I am trying to create a lookup list field (not a site column, just a plain list column) using the OfficeDev Patterns and Practices provisioning engine. I cannot seem to get the List attribute in the ...
1
vote
3answers
1k views

Error deploying taxonomy fields using the PnP provisioning engine

I am trying to deploy a multi-select taxonomy field using the PnP provisioning engine 1.5.915.0 and the termsetid token in the XML. If the term group and/or the term store have a space in the name (e....
2
votes
0answers
285 views

clear sharepoint property bag cache without apppool cycle

I've inherited code that uses the P&P code for accessing a farm-level property bag property on SharePoint 2013 SP1. The code has an application page to manipulate the property bag, and another ...
0
votes
1answer
51 views

Pattern for querying term store

Currently, I have a big and ugly helper class for getting data from the (SharePoint 2010) term store. I want to refactor this into something more robust and maintainable. Is there any design pattern I ...
1
vote
1answer
252 views

Design pattern Microsoft recommends for custom developement

Which design pattern Microsoft recommends for custom development? I know these 3: Model-View-Presenter Pattern Service Locator pattern Model-View-ViewModel Pattern
1
vote
1answer
3k 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?
0
votes
2answers
3k views

Microsoft SharePoint Guidance: Could not load assembly 'Microsoft.Practices.ServiceLocation'

I am using Microsoft SharePoint Guidance for logging and exception handling in my SharePoint timer job, my solution in SharePoint 2007 worked perfectly (and is working). Right now I am in the ...
0
votes
0answers
143 views

Proper way to get all lists of a certain type from an entire site collection regardless of current location

I'm creating a webpart that gives the user a feed of any annoucement list in the entire site collection, so they can aggregate data to a central portal. I'm currently using the following, but can't ...
2
votes
0answers
280 views

Is my Object Casting Model acceptable?

I'm creating a SharePoint application, and am trying some new things to create what amounts to an API for Data Access to maintain consistency and conventions. I haven't seen this before, and that ...
11
votes
2answers
2k views

LINQ to Sharepoint - Repository pattern and common methods in repositories

I generated a entity classes + data contexts by LINQ to Sharepoint and created a repository classes. When I use normal database and mapping like Entity framework I've got usually some base repository ...
0
votes
1answer
192 views

Is it possible to use SharePoint Logger from MS P&P SharePoint 2010 Guidance Library when user is not authenticated?

I am working on custom authentication for SharePoint 2010. And I found very useful to use SharePoint Logger from MS P&P SharePoint 2010 Guidance Library. It works fine when I get instance of ...
1
vote
1answer
371 views

Has anyone worked with the SharePoint Guidance Repository Pattern?

Any issues faced when using libraries and lookup columns? Please share you thoughts and experiences as I am planning to use it.
3
votes
2answers
247 views

Problem installing patterns & practices SharePoint Guidance

I'm having trouble setting up the Partner Portal. I got a System.NotImplementedException when I ran the setup script. Can someone shine some light on this? I am running VSeWSS using the local machine ...