Storing Dynamics CRM Online Documents in SharePoint Online

Introduction

In this blog we are going to connect SharePoint Online with Dynamics CRM Online. The steps we will cover to do so involve no code whatsoever.

Before we start you will need to download the ‘Microsoft Dynamics CRM 2011 List Component for SharePoint’, which can be found here. Once downloaded, run the executable file and extract the contents into a folder. Read more

Displaying Promoted Links on Multiple Lines

The promoted links app is a great way to display visual links to your SharePoint users. Out of the box they come with a few customisation options, allowing you to open links in new tabs, in a modal dialog or act as a normal link. They also let you chose a custom image, and provided the image is transparent, will always stay within the brand of your SharePoint site.

Promoted_Links_Default

Read more

Tools for SharePoint User Experience (UX) Design: Paper Prototyping

Introduction

Following on from the previous article in this series scamping, the topic for this article is the Paper Prototype.

What is Paper Prototyping?

A paper prototype, like a scamp, is a low-tech way of quickly visualising an idea, or in this case, an area of functionality that would either be difficult to explain or would require investigation for proving a concept.

In essence, a paper prototype is a scamp with interactive functionality, which can be quickly created, tweaked and thrown away if not required.

The example below is an expanding list showing how the finished prototype will be used.
Read more

Creating Dummy Documents via Office COM Object Model

Intro

During a SharePoint project, it’s very useful to have a bunch of dummy documents at your disposal, to test various functions. In SharePoint 2013, there’s a whole bunch of things you will need to test in various environments and browsers, where having a number of unique test documents will be useful. This includes Drag and Drop, Search, Office Web Apps, and any customisations made to document libraries, such as custom Display Templates, Grouping, and Paging. To save me having to create a large number of unique documents I decided to have a play with the Word COM Object Model and PowerShell.

Read more

Customising the NewForm with JSLink

In my last blog post about Client Side Rendering, Introduction to Client Side Rendering in SharePoint 2013, I covered what it is and how to create a simple ‘Percent Complete’ bar for each task by overriding the ‘View’ Form. This time, I’m going to override the New Form to create a task progress slider.

Form-with-slider

Read more

Calling SP.ClientContext for an anonymous user causes “object doesnt support this method”

So I’ve been working on a public facing 365 website lately and making a few customisations, one request I received was to have the ability for users to add an item to a “mailing list” list, and they wanted maximum portability, so I thought, perfect for the JS-CSOM!

Such a simple idea, add an item to a list, just needs one field adding in very straight forward, or so I thought.

So I created the js function and hooked it up, for auth users it worked like a charm but I ran into a problem when accessing it anonymously. I got the error “object doesn’t support this method” when calling a new “SP.ClientContext”.

It’s a straight forward error meaning it can’t find the function in any loaded libraries, so I thought ,right, it’s got to be SP not loading sp.js, simple, add a script link in there…

No luck, the same error came up. Then I thought right, it’s got be that the method is running before SP.js is properly loaded, so I used “ExecuteOrDelayUntilScriptLoaded()” to encapsulate my code and make sure it runs after the code is loaded. Published the js and checked it again…

No luck!

So it has to be sp.js not loading correctly. Remembering the SoD SharePoint is so fond of, I then tried the trusty “SP.SOD.executeFunc(‘sp.js’, ‘SP.ClientContext’, addToMailingList)”, and it worked perfectly!

Code:

SPClientContext-code-snipped