SharePoint 2013: Log Analytics through javascript


The following code snippet will help you to log the usage analytics into ULS://Log Views usage event on URL of catalog item    window.LogViewsToEventStore = function(url, site)    {            SP.SOD.executeFunc("sp.js", "SP.ClientContext", function()        {            var spClientContext = SP.ClientContext.get_current();            if(!$isNull(spClientContext))            {                    var spWeb = spClientContext.get_web();                    var spUser = spWeb.get_currentUser();                    var spScope = "{00000000-0000-0000-0000-000000000000}";                      … Continue reading SharePoint 2013: Log Analytics through javascript

SharePoint 2013 BCS with WCF data source: Unknown Error occurred. Unable to load one or more of the requested types.


This is a common error that you would have faced, while adding a WCF service endpoint to BCS through SharePoint Designer 2013, connected to Office 365. The complete error would look like this: Unknown Error occurred. Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information. This is … Continue reading SharePoint 2013 BCS with WCF data source: Unknown Error occurred. Unable to load one or more of the requested types.

$skip does not work in SharePoint 2013 OData REST Endpoint for list item retrieval


This came as a surprise to me seeing the OData URI query option "$skip" does not work, while trying to implement pagination logic on list using SharePoint 2013 REST API. Although this works perfectly well with the old ListData.svc...:( So here are some alternatives that can help you in your paginations: 1. Using $filter URI … Continue reading $skip does not work in SharePoint 2013 OData REST Endpoint for list item retrieval

Extract the Term Sets and their custom properties using CSOM in SharePoint 2013


The code snippet below will help you to query the SharePoint 2013 Term store using CSOM (ECMAScript)://Get the Current SP Context var context = SP.ClientContext.get_current(); //Get the Current SP Taxonomy Session var taxSession = SP.Taxonomy.TaxonomySession.getTaxonomySession(context); //Get the Term Stores instance var termStores = taxSession.get_termStores(); //Get the exact Term Store you would like to query//To get this...goto your term … Continue reading Extract the Term Sets and their custom properties using CSOM in SharePoint 2013

Beginners Guide to getting started with Amazon Product Advertising API


This is a beginners guide to consuming the Product Advertising API of Amazon. I will be targeting "ItemLookup" method here. But any other API methods like "ItemSearch", "BrowseNodeLookup", "SimilarityLookup", "CartAdd", "CartClear", "CartGet", "CartModify" should look like a cake walk after this. Pre-requisites: An Amazon AWS (Amazon Web Services) account If you do not have one, … Continue reading Beginners Guide to getting started with Amazon Product Advertising API

Display Project Server 2013 Excel Reports in your SharePoint Site


This post is in continuation to my previous post on Building Excel reports from Project Server 2013 OData Services. Now that you have your Excel Report and started being innovative in building jazzy reports and dashboard, you might want to display it on your homepage so that you could get the snapshot of everything when you … Continue reading Display Project Server 2013 Excel Reports in your SharePoint Site

Building Excel reports from Project Server 2013 OData Services


This is quick walkthrough to showcase how you could build powerful reports from Project Server data online, in a jiffy. I am using the Project Online Subscription from Office 365. However, this should work with your on-premise Project Server 2013 setup as well. So no worries...Interestingly this technique can be extended to any other data … Continue reading Building Excel reports from Project Server 2013 OData Services