How to configure Visual Studio 2015 with the latest version of Node.js and NPM

Hi, I recently installed Visual Studio 2015 Update 2 in order to work in a project, in which, we would like to use a combination of  different technologies like SharePoint stuff, React, Node.js, LESS and Gulp. In my opinion, is good to to use new technologies at the right time, in terms of, learning curve, Read More →

Convert from two letters language code to four letters Language Tag with PowerShell

Hi, This post is about how to convert two letter language code to four letter language tag format (Language Tag defined by Microsoft). Introduction Windows Language Tag was defined based on IETF BCP 47 best practice that defines “Tags for Identify Languages” and all the values and the Windows version where released are documented here Read More →

Dealing with authentication when Developing with multiple Office 365 tenants using Chrome Profiles

Hi there, When we are developing with multiple tenants in Office 365 using the same development environment, I am pretty sure we are annoyed when we have to deal with with the Office 365 authentication. That is not Office 365 issue, is just having different accounts having to access to the same authentication portal in Read More →

Using PowerShell To retrieve all Sites (Web Object) recursively from SharePoint Online

Hi there, When you deploy a solution in SharePoint Online (SPO) sometimes, you need to apply some post – configurations and need to iterate thru all sites and sub-sites in a given Site Collection. In general talking about Office 365, there is more frequent the use of PowerShell to solve some kind of processes automation. Read More →

Using PowerShell to Add WebPart to SharePoint Page via CSOM in Office 365

Hi, This time, I was supposed to add a webpart to SharePoint Online page programmatically. It depends on our requirements, but we could use JavaScript or other Client Object Model libraries to add a web part to SharePoint page. My advice is, even if your requirements guide you to write PowerShell script, try to use Read More →

Using PowerShell to Set Available Web Templates via CSOM in SharePoint Online / Office 365

Hi, Sometimes, the easiest way to deploy some additions, or updates in an already deployed SharePoint Online solution, is using PowerShell. In my case, I had the requirement of updating some Web Templates in a Office 365 Intranet and enable these Web Templates to be used in several sites that were already provisioned. So, ideally Read More →

SharePoint Online PowerShell problem: Cannot convert the "Microsoft.SharePoint.Client.ClientContext"

Hi, When we are doing a SharePoint deployment using PowerShell there we could find similar problem like that: Cannot convert the “Microsoft.SharePoint.Client.ClientContext” value of type “Microsoft.SharePoint.Client.ClientContext” to type “Microsoft.SharePoint.Client.ClientRuntimeContext”.” In my scenario I was trying to Activate a Sandboxed solution using PowerShell: $ctx = New-Object Microsoft.SharePoint.Client.ClientContext($siteUrl); $credentials = New-Object Microsoft.SharePoint.Client.SharePointOnlineCredentials($adminUsername, $secureAdminPassword); $ctx.Credentials = $credentials [Microsoft.SharePoint.Client.Publishing.DesignPackage]::Install($ctx, Read More →

SharePoint 2013 Client Side Rendering: Register Templates Overrides in Detail

Introduction SharePoint 2013 Client Side Rendering (CSR) is used for defining a custom rendering in list views and list forms. That also apply to Office 365. You can see a good article about how CSR works. Note that JSLink and CSR are different things: – CSR: is a JavaScript framework used in SharePoint 2013 as Read More →

Change CSR Render Mode in Office 365 / SharEPoint 2013

Hi there, After SharePoint 2013 was introduced a new feature called Client Side Rendering (here a good overview). Using Client Side Rendering and JSLink, probably we have found something called CSR Render Mode, you can see in the above image: Server Render falls back to XSLT, while Standard and Custom are based on CSR. There Read More →

CAML Query to Filter Lookup Field by Id using JSOM in Office 365 / SharePoint 2013

Hi, Few days ago, I wrote a post about how to Create a new lookup field using JSOM in Office 365. Continuing with the same scenario, we have two related libraries: Documents and Pages, and the requirement is to see for every page one list of related documents. So, the first step, was creating a Read More →