HOW TO: Change file extension of an existing item in SharePoint document library

This post is a contribution from Aaron Miao, an engineer with the SharePoint Developer Support team. For various reasons, people want to change the file extension of an existing item in a document library.  For example, with SharePoint 2007, files with JSON extension in document library can be opened without problems.  However, once you upgrade…

5

HOW TO: Change master page of a personal site in SharePoint 2013

This post is a contribution from Pavan Kumar, an engineer with the SharePoint Developer Support team. As in SharePoint 2007 and 2010, one of the ways to achieve this is to use FeatureStapling.  Below are the steps to be followed to get this working. Create a SharePoint 2013 Empty project in Visual Studio 2012 and…

7

HOW TO: Publish a LightSwitch App (high-trust) to SharePoint On-Premises environment

This post is a contribution from Raghavendra B Nanjaiah, an engineer with the SharePoint Developer Support team. Just wanted to publish this post provided the steps to publish a LightSwitch App to SharePoint On-Premises environment.  Hope you will find this useful. Section 1: Create issuer ID (same as high-trust app) 1. Check if any previously…

5

HOW TO: Deploy InfoPath List Forms for an External List using Visual Studio 2012 solution package

This post is a contribution from Aaron Miao, an engineer with the SharePoint Developer Support team. Create a test site 1. We create a SharePoint site collection named http://intranet.contoso.com/sites/testsite/testexternallist. **It’s good to use a site which does not have lot of stuffs, best would be to create a new team site or blank site. 2….

0

HOW TO: Deploy a provider hosted app as an Azure site

This post is a contribution from Charls Tom Jacob, an engineer with the SharePoint Developer Support team. In this blog, I will describe the steps to deploy a provider hosted app on Windows Azure hosted site (same steps should work for any IIS sites for that matter).  The app will be deployed into SharePoint Online…

8

HOW TO: Add users to SharePoint Groups using SharePoint 2013 UserGroup.asmx Web Service

This post is a contribution from Raghavendra B Nanjaiah, an engineer with the SharePoint Developer Support team. Problem When you try to add users through the UserGroup.asmx web service (http://localhost/_vti_bin/UserGroup.asmx) in SharePoint 2013 with the sample code below. sp.UserGroup usrgrpService = new sp.UserGroup(); usrgrpService.Credentials = new System.Net.NetworkCredential("Administrator", "access", "contoso");   usrgrpService.AddUserToGroup("Dev Members", "usera", "contoso\\usera", "usera@contoso.com",…

2

HOW TO: Develop a workflow code activity in SharePoint 2013

This post is a contribution from Raghavendra B Nanjaiah, an engineer with the SharePoint Developer Support team. First part is to create our code activity and let the Workflow Manager and SharePoint 2013 know about it. 1. In VS 2012, click New Project, Workflow and choose Activity Library. 2. Delete the declarative Activity1.xaml from the…

29

HOW TO: Access list item in WorkflowStarting event receiver when “Required documents to be checked out” option is set to “Yes”

This post is a contribution from Charls Tom Jacob, an engineer with the SharePoint Developer Support team. Scenario: You have a SharePoint library in which “Require documents to be checked out before they can be edited?” is set to Yes. You have a WorkflowStarting event receiver associated to the list, with the following very basic…

0

HOW TO: Generate Document IDs for custom content types with Inherits=False

  This blog post is a contribution from Deepak Kumar, an Engineer with the SharePoint Developer Support team. The “Inherits” attribute of the custom content type when set to “False” indicates that the custom content type will only inherit Fields that were in the parent content type when SharePoint Foundation was installed. Fields that were…

1

HOW TO: Use REST to POST in Hosted SharePoint Apps

  This blog post is a contribution from Mustaq Patel, an engineer with the SharePoint Developer Support team. This blog post demonstrates the use of SharePoint 2013 REST from AppWeb to issue HTTP POST on HostWeb. This  does not require cross domain calls or the use of SP.RequestExecutor.js.  Cross-site collection calls are demonstrated in Solving…

10