Office 365 · Patterns And Practices · SharePoint · SharePoint 2013 · SharePoint Online · Visual Studio

Office 365/SharePoint 2013 – Enable Intellisense of OfficeDev\PnP


In recent months I've really started to like the OfficeDev\PnP initiative on Github. The following 4 projects give a great start for provisioning sites: https://github.com/OfficeDev/PnP-Provisioning-Schema https://github.com/OfficeDev/PnP-Sites-Core https://github.com/OfficeDev/PnP-PowerShell https://github.com/OfficeDev/PnP It is now possible to export sites and import sites without the need for any features other than the out of the box features. No need to upgrade features,… Continue reading Office 365/SharePoint 2013 – Enable Intellisense of OfficeDev\PnP

SharePoint · SharePoint 2013 · Visual Studio

SharePoint 2013 – How to deploy and redeploy Display Templates


My problem I've been struggling for a while to deploy my display templates. This article does explain how to deploy the templates however when I try to redeploy the display templates the templates aren't replaced. Then I found some Voodoo. So now I had to put 1 and 1 together Your solution My feature activated… Continue reading SharePoint 2013 – How to deploy and redeploy Display Templates

SharePoint · SharePoint 2013 · SharePoint Designer · Visual Studio · Workflow · Workflow Manager 1.0

SharePoint 2013 – Get TemplateID for starting a workflow from the ribbon in SharePoint 2013 workflow


Background: To start a workflow from a SharePoint ribbon a URL needs to be build up in the following format: SPUserCustomAction action = web.Lists[listname].UserCustomActions.Add(); string workflowTemplateId = workflowId.ToString(); action.Title = title; action.ImageUrl = "/_layouts/15/images/wfComment.png"; action.Url = "{SiteUrl}/wfsvc/06f8de2413bc41fe869414fc061435f9/WFInitForm.aspx?List={ListId}&ID={SelectedItemId}&TemplateID={"+ workflowTemplateId +"}&WF4=1&Source={Source}"; action.Location = "CommandUI.Ribbon.ListView"; action.Sequence = 0; action.CommandUIExtension = "<CommandUIExtension xmlns='http://schemas.microsoft.com/sharepoint/'>"+ "<CommandUIDefinitions>"+ " <CommandUIDefinition Location='Ribbon.Documents.Manage.Controls._children'>" + "… Continue reading SharePoint 2013 – Get TemplateID for starting a workflow from the ribbon in SharePoint 2013 workflow

SharePoint · SharePoint 2013 · SharePoint Designer · Visual Studio · Workflow · Workflow Manager 1.0

SharePoint 2013 – Workflow Manager 1.0 – How to publish a list workflow programmatically


So I had a reusable SharePoint Designer workflow deployed in SharePoint 2013. The process that I'm implementing is creating project sites using web templates created in Visual Studio 2013. When a list item is created my web template created a document library and also activates a feature to enable my reusable workflow. First I created… Continue reading SharePoint 2013 – Workflow Manager 1.0 – How to publish a list workflow programmatically

SharePoint · Visual Studio

Content types in SharePoint


Content types in SharePoint can be extended by creating a new feature which deploys an element file with the following content: <Elements xmlns="http://schemas.microsoft.com/sharepoint/">     <ContentType ID="GUID"         Name="Text"         Group="Text"         Version="0">         <FieldRefs>             <FieldRef ID="GUID" Name="Text"/>         </FieldRefs>     </ContentType> </Elements> The content type Id includes the GUID of the Parent content type.… Continue reading Content types in SharePoint