Geeks With Blogs

News Cloud development with Azure, Visual Studio and SharePoint Online!
Thorvald Bøe sharepoint
Create a multi line rich text field in a SharePoint list using REST
I recently needed to create a rich text field in a SharePoint list programatically. Since I am using REST all over the place, it would be practical to continue that now as well.I was able to find out how to create a new field. It is done by posting to this url: reqUrl = appweburl + "/_api/SP.AppContextSite(@t... + listName + "')/fields?@target='" + hostweburl + "'";For example like this:$.ajax({ url: reqUrl, type: "POST", data: "{ '__metadata': { 'type': 'SP.Field' }, 'Title': ......

Posted On Thursday, January 14, 2016 12:32 PM

Finding the maximum number of sub sites in SharePoint Online
When dealing with SharePoint Online, there are some limitations to consider.The most famous one is the list view threshold of 5000 elements in a list view. But there are also others. In my company, we have implemented a project workspace solution for managing projects. In essence, we create a subsite for every project in a project list. This has lead us to another potential limitation: The number of subsites per site collection.When googling the limitations of SharePoint Online, I find a page saying ......

Posted On Friday, December 18, 2015 1:14 PM

Creating a SharePoint list item from an app/add-in part - fun with form digest
Ok, I will try not to make this a rant, but after knocking my head against the proverbial wall for several hours, that is going to be a tough one, LOL.The problem was seemingly trivial: Create a SharePoint hosted add-in part with a button that creates an item in a list in the host web.After all, I have been working with list items quite a bit from the SP hosted add-in, so doing it from an add-in part should not be so difficult, right? Wrong!As you might know, when modifying a sharepoint list (e.g. ......

Posted On Tuesday, October 6, 2015 8:48 PM

Add default values for date fields in list edit forms using moment.js
I love the SharePoint lists, they are so easy to set up and customize. I use it all the time.Still, there is room for improvement. The display/new/edit forms for example, are not very customizable OOTB. However, by making some very simple tweaks, you can make great improvements. This time I had a form displaying a couple of date fields, where it was desired to display default values based on some simple logic.The basic problems here are:1.SharePoint has very limited functionality for default values ......

Posted On Friday, March 6, 2015 9:51 AM

SharePoint architecture in an enterprise scenario
I want a discussion on SharePoint architecture in an enterprise scenario. What is the way to go? SharePoint 2016 has been announced as the last version for OnPrem, and even if OnPrem is far from dead, SharePoint Online seems to be the investment focus for MS, so let's focus on this. SharePoint Online is a great product, but it has its limitations. Farm solutions are not allowed, and while coded sandboxed solutions still work, they are classified as deprecated and might not be supported any time soon. ......

Posted On Monday, February 16, 2015 12:14 PM

Build a simple auto increment feature in SharePoint 2013 list
Every now and then I stumble across this requirement. And every time I seem to have forgotten how to do it, and try various approaches like using a calculated field based on Id, or using a workflow based on the Id.Bottom line is, at the time of creation, the item Id is not yet set, so you cannot use it, neither from a calculated field nor from a workflow. But with a small workaround, it is possible to make it work in an easy and robust way. After writing this post, I hope I will remember the next ......

Posted On Wednesday, January 14, 2015 3:37 PM

Problems starting the user profile synchronization service
This seems to be a quite common problem. This is what I tried:1.Central Admin - Services on server: Tried to start the user profile sync service (the user profile service was running). Result: Status changed to "Starting" for a few seconds, then back to stopped. I found no trace of errors in ULS or event log2.I cleared the configuration cache (link) - Still unable to start the service3.Added the user running the service (in my case the sp_farm user) to local administrators.Note: This sounds like ......

Posted On Tuesday, October 14, 2014 9:54 AM

Setting up the app catalog on SharePoint 2013
I just finished setting up an app catalog for a client on SharePoint 2013 on premise. It was a daunting task, and turned out to be much more difficult than when I tried in my own development environment in Azure. I will share some of my experiences so that you might escape some of the hurdles.First of all, if this is your first time setting up app support, prepare well! It doesn't have to be too difficult, but it involves a few steps, and there are plenty of places to go wrong, which would lead to ......

Posted On Friday, August 22, 2014 9:09 AM

Where is my services list?
Recently, I have been doing some work on setting up an app catalog on a SharePoint server. As with many other SharePoint related tasks, it seemed quite complicated at first, but quite easy once it was done and working. The whole process could be material for another blog post, but I wanted to write this blog post about one particular problem that I have ran across at several occasions, among others when I was going to set up the subscription service that was required for the app catalog.As I am a ......

Posted On Thursday, August 21, 2014 3:56 PM

Sending email with SharePoint and jQuery
Want to send email from SharePoint using jQuery? No problem!No need to create workflows or set up SMTP servers, just use this simple function:function sendEmail(from, to, body, subject) { var siteurl = _spPageContextInfo.webServe... var urlTemplate = siteurl + "/_api/SP.Utilities.Utility... $.ajax({ contentType: 'application/json', url: urlTemplate, type: "POST", data: JSON.stringify({ 'properties': { '__metadata': { 'type': 'SP.Utilities.EmailProperties' }, 'From': from, 'To': ......

Posted On Thursday, July 3, 2014 3:58 PM

Copyright © Thorvald Bøe | Powered by: