How to troubleshoot performance issues in SharePoint custom code on your own? Part 3- Slow

This post is a contribution from Paul Chan, an engineer with the SharePoint Developer Support team Another popular performance issues I have seen when working on customer’s issues is slow response. Obviously, this blog article addresses a slow scenario. NOTE: If you feel needed or press on time, feel free to contact Microsoft and create…

2

How to troubleshoot performance issues in SharePoint custom code on your own? Part 1 – High Memory Usage

This post is a contribution from Paul Chan, an engineer with the SharePoint Developer Support team One of the popular performance issues I have seen when working on customer’s issues is high memory usage. Note that performance issues in Microsoft development support are divided into different categories; i.e. a) High memory usage; b) High CPU…

2

RoleAssignmentAdding event receiver in SharePoint 2013 does not show error page with CancelWithError

This post is a contribution from Aaron Miao, an engineer with the SharePoint Developer Support team SharePoint 2013 SPSecurityEventReceiver provides methods to trap events that are raised for security. Tim Ferro’s this blog provides great details missing from MSDN document about the class. This blog is to provide one detail about the issue of canceling…

2

Setting Time Zone for a user in SharePoint 2013

This post is a contribution from Aaron Miao, an engineer with the SharePoint Developer Support team With SharePoint 2010 you can set time zone for a user using code like this: // Code1using (SPSite cSite = new SPSite(siteURL)) { using (SPWeb curWeb = cSite.RootWeb) { curWeb.AllowUnsafeUpdates = true; SPUser editUser = curWeb.EnsureUser(loginName); SPRegionalSettings userRegSettings =…

0

Uses the server-side object model SearchExecutor to query RelevantResults could return inconsistent results

This post is a contribution from Paul Chan, an engineer with the SharePoint Developer Support team A customer brought an issue to my attention recently that using the server-side object model Microsoft.Office.Server.Search.Query.SearchExecutor class with Query Rules defined in SharePoint could get inconsistent relevant results. There is a popular code example about the use of the…

6

Debugging SharePoint Online Provider Hosted App Remote Event Receivers

This post is a contribution from Charls Tom Jacob, an engineer with the SharePoint Developer Support team Update on 30-Apr-2014: Note: SAS Service Bus connection strings have been supported in Visual Studio 2015 RC and Office Developer Tools for Visual Studio 2013 – April 2015 Update for SharePoint remote event receiver debugging. If you are…

3

How to create a folder in document library or a list item in a list utilizing REST API in SharePoint 2013 workflows

This post is a contribution from Kevin Jacob Kurian, an engineer with the SharePoint Developer Support team We come across this requirement wherein we would need to utilize REST API calls in SharePoint 2013 workflows. Using the new “Call HTTP web-service action” in SharePoint 2013, we can achieve the same. We could utilized any of…

1

Visual Studio 2013 Workflow: Failed to translate expression because of the following error: Translating the method or one of its overloads to an activity is not supported

This post is a contribution from Charls Tom, an engineer with the SharePoint Developer Support team When you build a Visual Studio Workflow targeting SharePoint 2013, you will see this error if you are using any expression that’s not supported inside a workflow. The reason for this is that 2013 workflows support only a very…

1