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];

Wednesday, August 13, 2014

Creating a SharePoint list and Adding List Items in SharePoint Apps

In my previous article I explained how to read from a SharePoint list available inside a SharePoint App site. In this article my focus would be on how to create a list inside the app and how to add list items to it. The same app I used in the previous example will be used here. Here is the code available in my Default.aspx file. It is simple just a textbox and a lable inside a HTM table and a div which includes an unordered list.

I will start having the same set of definitions in the top.

var context = SP.ClientContext.get_current();
var web = context.get_web();
var user = context.get_web().get_currentUser();
var lists = web.get_lists();

Thursday, August 7, 2014

Reading a SharePoint List using JavaScript Object Model

Using JavaScript is the buzz since the introduction of the SharePoint apps. The JavaScript client side API has improved quite a lot in SharePoint 2013 and this is the only option if you are developing a SharePoint hosted app. When comparing with the server-side object model, I did not found many conceptual differences in the API. If we are to access a list, what we need to do is refer the current site through the current context and then refer the list available in the current site. 

Here is the div tag available in my Default.aspx file which contains an unordered list inside. Forget about the other items later. Will discuss about it in next post.


<div>
<ul id="ToDoItems"></ul>
</div>


Here are some important objects created in the JavaScript API and look how similar they are with the Server-side object model.

Wednesday, August 6, 2014

Working with Napa Office 365 Development Tools

In my previous article I gave an introduction on how to start Office 365 development with SharePoint Online and how to Add the app into SharePoint online. In this article I will be focusing on working with Napa Office 365 Development Tools. You can go to the development portal at https://www.napacloudapp.com/. Make sure you have signed into Office 365 so the apps available for the particular environment will be displayed. 

Napa Projects Home
Click on the Add New Project link and a popup will appear. Select App for SharePoint and give a project name. (I give mine as DemoApp1). You will be navigated to the development environment. 

Monday, August 4, 2014

How to start Office 365 SharePoint Development

Office 365 is a hand full package. It includes many services where the key services are  SharePoint Online, Exchange Online and Lync Online. As you may have in all the systems, Office 365 also has an admin panel which is called 'Office 365 admin center'. The image below is a screen caption of the Office 365 admin center.

Office 365 admin center
You may have access to this or you may not. The main development focused on Office 365 is SharePoint. With SharePoint 2013, its mostly about apps. In this article I will describe how to start creating a SharePoint app using "Napa Office 365 Development Tools".