Tuesday, September 1, 2015

Response 429 for SharePoint REST API

Recently I got to work on an instance where it continuously made many REST API calls to SharePoint within a limited amount of time. It was a set of workflows where around 2000 workflows started at a limited amount of time. To make things worse, all these workflows were started from the same user. 

The response 429 is for Too Many Requests.

Thursday, August 13, 2015

SharePoint DateTime field REST API Time Zone Issue

We all think this is an issue, but it is not. REST API for SharePoint has its own way of handling things compared to the other APIs. There are a few things we need make note. 

1. SharePoint stores date in 0000 UTC timezone. 
2. We have a different regional setting (timezone) for the SharePoint site.

Thursday, February 5, 2015

SharePoint 2016 Development Predictions

Its few months before Microsoft officially make announcements on the SharePoint 2016 version which we can assume will happen at Ignite event to be held in Chicago. After going through several articles including the one at office blog, I thought of making some predictions on 2016 capabilities that will matter of the developers and designers. 

Saturday, December 6, 2014

Working with Device Sensors, GPS and Maps

I was given an opportunity to speak on "Working with Device Sensors, GPS and Maps" in an event held at Microsoft Sri Lanka. This was for a team of Universal Apps fans from their customer network.

Thursday, November 27, 2014

Speaking at the Share-The-Point Southeast Asia 2014

The great Share-The-Point Southeast Asia Conference for year 2014 just concluded yesterday. It had a good line up of sessions that worth for Developers, Business people as well as any other type of SharePoint enthusiasts. 

Me being a speaker

I got a great opportunity to interact with the other speakers who has many experiences and knowledge to share. My topic was "Using Lync for Cost Effective and Efficient Communications". It was really good preparation experience as it is one of the rare moments I shared the business aspect of a technology like this. 

The demonstration included some key features provided by Lync for supporting the meetings. It is really nice the way how Lync supports meetings as it provides multiple sharing options for,

  • Desktop sharing
  • Sharing a single program
  • PowerPoint presentation sharing
  • Whiteboard and
  • Polls

Wednesday, September 24, 2014

Few key things to know about SharePoint Apps

Apps has been the keyword when you speak about SharePoint 2013 development. It brings many 
advantages with its characteristics. The concept of SharePoint apps bring many advantages. In this 
article I am going to explain some of them which attracted me most. 

1. Executes outside SharePoint
A farm solution could possibly break the whole SharePoint farm. But given the apps do work mostly 
out of the SharePoint it minimize the risk of affecting the SharePoint environment. Also this puts relatively less load on the server as well as it can be configured by the administrators.

Thursday, August 21, 2014

Using SPWeb.EnsureUser in SharePoint

I faced this scenario many times and when I Googled, there are many who have faced the same. I had added an Active Directory group to the site members group. Then I asked them to log in and make requests for a particular business scenario that triggered workflows. I had a scenario that another user could make a request on behalf of another. Simply someone is asking to reset an AD account of a person who lost his password. Given that there is a need to add a new list column called 'On Behalf Of' which is a person or group column, I simply used code to create an SPUser object through C# code using the people picker value where people picker was available in the request form to select the on behalf of user. 

I got the username from the people picker comma separated values and used the following code to get the user.

SPUser onBehalfOfUser = web.AllUsers[onBehalfOfuserLoginName];