Blog

Enable Azure Invocation Log at Web Job function Level for PnP Provisioning

Hi, Few months ago I posted about enabling log and trace information for PnP Core Provisioning when using Console Application. Recently, I have been working in several projects with PnP Partner Pack Provisioning and some custom Web Jobs using PnP Core Provisioning bits as well. And there is one annoying thing in common, not having Read More →

Getting React to Load polyfills only when needed

As a front-end developer, providing support to different browsers and devices isn’t an easy task. In fact, it’s the trickiest part of web development because there are differences in terms of HTML, CSS and JavaScript functions supported for every browser / device. There are quite good web sites documenting these differences in terms of: – Read More →

Update Page Layout by using JavaScript (JSOM) in Office 365

  Hi, I’m going to show how to update or change the page layout for a given SharePoint page. That sounds quite straightforward, but we have to mind some important bits: – Check in, check out status of the current page or item we are changing. – CAML query using Page Layout as a FieldRef Read More →

Cross-Browser and Device Testing with BrowserStack, Nightwatch and Office 365 Authentication

Hi there, Recently I was working on a project with lots of Responsive pages to do. One of the main requirements was enabling Responsive experience in an Office 365 intranet, in fact the most used device on that company was iPhone 5S. Then I started developing using Media Queries, initially building a responsive menu. Initially Read More →

React: Use ES6 arrow functions in Classes TO avoid binding your methods with the current This object

Hi, Working with React sometimes, if you like well-organized and structured code, you will be in the situation to have to do things like: this.minus = this.minus.bind(this); We can avoid having to bind every method by using ES6 arrow functions inside of the class methods. That means that we need to use the babel plugin Read More →

A beginner’s guide to build a new SPA with ES6, SCSS, React, Webpack and HMR.

Recently, I have been working on a project which used ReactJS to build several SPAs (Single Page Applications). I’ll openly admit it was a pain for me to get working even a basic project or starter template. The reason is because there are lots of new concepts, frameworks and technologies. I decided to write down Read More →

Enable SQL Azure access from Azure WebJobs by adding firewall rules using PowerShell

Hi, When we are developing custom Azure Web Apps or WebJobs, likely we will need access to Azure SQL database. Depends on the needs you will use Entity Framework, or direct Queries using Stored Procedures, but this is not the topic of this post. The topic today is how to allow our Azure WebJob to Read More →

How to Unzip Azure Blobs programmatically using Memory Streams in Azure WebJOBs

Hi, Recently I had to extract files from a .zip file stored on Azure Blob Storage in Azure WebJob process.   This is what I did from scratch: 1. Create WebJob project: https://azure.microsoft.com/en-gb/documentation/articles/websites-dotnet-webjobs-sdk/ 2. Create Non-continuous Azure WebJob: https://github.com/Azure/azure-webjobs-sdk-samples/blob/master/BasicSamples/TableOperations/Program.cs static void Main(){    var host = new JobHost();    host.Call(typeof(Functions).GetMethod(“MyMethod”));} public class Functions{       [NoAutomaticTrigger]        public static void Read More →

How to provide SharePointContext to a Web API Action (ApiController) in a Provider-hosted SharePoint ADd-In

Hi, Recently I have been played with Azure Web Apps, and its integration with SharePoint. In this post we will see how to provide Authentication to Web API REST actions using SharePointContext, which means that we only will be able to invoke our REST actions if we are behind the context of SharePoint Provider-hosted App. Read More →

Enable Log and Trace information for PnP Core Provisioning when using Console Application

Hi, Looking into PnP Provisioning I noticed there isn’t configuration to set up proper log and trace information (version v2.4.1605). If you haven’t chance to look into PnP Core solution, and you want to know how to start, take a look here: Office 365 PnP Provisioning starting point. Anyway, if you’d like to add some Read More →