Unable to see more than 100 Items from SharePoint list using Rest API

Leave a comment

In your custom list which is having more than 500 records. When you query with REST API it returns only 100 records.

Eg: http://<domain>/<site url>/_api/web/lists/GetByTitle(‘ListName’)/items

To override that you need to append $top=3000 or $top=5000

Eg: http://<domain>/<site url>/_api/web/lists/GetByTitle(‘ListName’)/items?$select=AuthorId&$top=3000

Here authorId is CreatedBy Column.

Feel free to email me at bharath.chennu@onetidbit.com




Image slideshow using document library in SharePoint 2013

Leave a comment

1) How to genereate a image slideshow with using list in SharePoint 2013?
A) Concept:

backend: Sharepoint Documnet Library
Frontend animation: bxslider (js and Css)

Step -1:
Create a document library name it as: banners and add 3 images.

Create a sharepoint page and Insert banners list webpart.
After adding webpart. Go to webpart properties by edit properties.
In JS link give the paths of our CSR (JS file and bxslider.js file).

For example: ~site/Style Library/bx-slider.js|~site/Style Library/Generatebanner.js

Before we must add bxlider.js and its css files into style library.

Download those files at: http://bxslider.com/


Add CSR coding into our Generatebanner.js.

(function () {

function OnEventsViewPostRender(renderCtx) {

//write any jquery code if you want


function SliderscriptLoadSuccess(){}
function loadCss(url) {
var link = document.createElement(‘link’);
link.href = url;
link.rel = ‘stylesheet’;

function OnEventsViewPreRender(renderCtx) {
function RenderBannerPhotos(renderCtx) {

var listData = renderCtx.ListData;
if (renderCtx.Templates.Body == ”) {
return RenderViewTemplate(renderCtx);
var bannersliderHtml = ”;

bannersliderHtml += ‘


bannersliderHtml += ‘


for (var idx in listData.Row) {
var listItem = listData.Row[idx];

var title = listItem.Title;
var itemID = listItem.ID;
var imgURl = listItem.FileRef;
var redirectURL=listItem.Url;


bannersliderHtml += divHTML;


bannersliderHtml += ‘

bannersliderHtml += ‘</div>’;
return bannersliderHtml;

function RenderEventsViewBodyTemplate(renderCtx) {
if(renderCtx.ListTitle == “BannerPhotos”) {
return RenderBannerPhotos(renderCtx);
function _registerEventsViewTemplate() {

var eventsViewContext = {};

eventsViewContext.Templates = {};
eventsViewContext.Templates.View = RenderEventsViewBodyTemplate;
eventsViewContext.OnPreRender = OnEventsViewPreRender;
eventsViewContext.OnPostRender = OnEventsViewPostRender;
ExecuteOrDelayUntilScriptLoaded(_registerEventsViewTemplate, ‘clienttemplates.js’);


5) Refresh the page you will get images sliding

For any queries feel free to contact me

“Sign in as different user” option in SharePoint 2013

Leave a comment

We can do it in two ways.

First way:

Just type the url : http://siteurl/_layouts/closeConnection.aspx?loginasanotheruser=true

Second way:

In your sharepoint server installed Server:

  1. Go to path: C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\TEMPLATE\CONTROLTEMPLATES
  2. In that file you will find Welcome.ascx file.
  3. Open the file with Notepad and add the below code exactly before the tag.ID_RequestAcess
  4. signindifferentuser
  5. Just Refresh after the change is done.

Get current logged user in list event receivers?

Leave a comment

SPUser user = properties.Web.CurrentUser;

Error “Admin SVC must be running in order to create deployment timer job”

Leave a comment

Hi All,

While Deploying a WSP solution into a WebApplication in Powershell. You may face the issue or error as:

Admin SVC must be running in order to create deployment timer job”

To rectify it:

Just go to Enable the Services of SharePoint Administrator.

Go To Command Prompt and Type Services.msc. You will see a window contains all the list of services running.

Enable “SharePoint 2010 Administration” service.

Service name: SPAdminV4
Display Name: SharePoint 2010 Administration

Once you have Enabled or Started it that the command will run smoothly.

The server was unable to process the request due to an internal error. For more information about the error, either turn on IncludeExceptionDetailInFaults (either from ServiceBehaviorAttribute or from the configuration behavior) on the server in order to send the exception information back to the client, or turn on tracing as per the Microsoft .NET Framework 3.0 SDK documentation and inspect the server trace logs.

Leave a comment

Hi All,

Dont get panic after seeing this huge error message in your SharePoint 2010 page.

Usually when you restore a Database to the database related to sharepoint application.

In my case when I restore a database to the old db of SharePoint site it occureed. To see the exact error we need to do little changes in the web.config of ” Security Token Service Application”.

Location of Security Token Service Application.

1) Open IIS.

2) Click Sites Folder

3) Click SharePoint Web Services (Small Globe Icon)

4) There at bottom you can see Security Token Service Application.

5) Right click and click Explore. There Open its web.config file and do the changes.

<!– Behavior List: –>
<behavior name=”SecurityTokenServiceBehavior”>
<!– The serviceMetadata behavior allows one to enable metadata (endpoints, bindings, services) publishing.
This configuration enables publishing of such data over HTTP GET.
This does not include metadata about the STS itself such as Claim Types, Keys and other elements to establish a trust.

<serviceMetadata httpGetEnabled=”true” />

<serviceDebug httpHelpPageEnabled=”true” includeExceptionDetailInFaults=”true” />

<!– Default WCF throttling limits are too low –>

<serviceThrottling maxConcurrentCalls=”65536″ maxConcurrentSessions=”65536″ maxConcurrentInstances=”65536″ />




Sandboxed solution: Error occurred in deployment step ‘Activate Features’ – Office 365 SharePoint Online

Leave a comment

While building webparts for office 365 or sharepoint online you need to develop sandboxed webparts.

To develop and deploy sandbox webparts you need to do few things for successful output.

  1. Download and install “Visual Studio SharePoint power tools”(http://visualstudiogallery.msdn.microsoft.com/8e602a8c-6714-4549-9e95-f3700344b0d9)
  2. Activate the service “SharePoint 2010 User Code Host” in services. So that error will go.
  3. For more info see at: http://sp2010solutions.blogspot.in/2012/03/sandboxed-solution-error-occurred-in.html
    1. In Visual StudioàNew ProjectàEmpty SharePoint Project

    1. Add a New Item as “Visual Webpart(Sandbox)”


Older Entries

%d bloggers like this: