Month: July 2017

Upsert function for Rest SharePoint API

Here is a simple wrapper function I created for use with the SharePoint Rest API. If an Id is entered the function will update a record, otherwise it will insert a new record. Usage: //Create ListItem Object var customers = {}; //Set List Name customers._listName = “Customers”; //Add columns to insert customers.Name = “Michael Tippett”; customers.Email = “My@email.com”; //Insert into…

Read more

Replacing SharePoint DatePicker

If you have ever used SharePoint, you probably know that SharePoint’s native datepicker’s is horrible. Clicking the native datepicker will cause the entire page to post back, if the page is scrollable, this will take the user to the top of the page. A simple solution is to remove the datepicker image link, and replace those fields with a datepicker…

Read more

SharePointPro Entity Framework

SharePointPro Entity Framework SharePointPro is proud to announce that we will be releasing our customised SharePoint Entity Framework to the Open Source Community. SharePointPro entity Framework is a SharePoint First Entity Framework to simplify access to SharePoint Online or On Premises. The Framework can automatically generate SharePoint lists as Entities and create a context with all the entity repository for…

Read more

Provider Hosted App Times Out

Disclaimer: The supplied solution is convoluted, a better solution would be to completely recreate the SharePointContext class. I came across a problem with a SharePoint Provider Hosted App I created for a client while working on the Gold Coast. The app was a Single Page Application created in MVC C# utilising the standard SharePointContext and TokenHelper class. A problem occurred…

Read more

Web deployment task failed. http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_CONNECTION_TERMINATED.

​After setting up and using Web Deployment from Visual Studio 2013 many many times, I experienced an error: Error 79 Web deployment task failed. (Web Deploy experienced a connection problem with the server and had to terminate the connection. Contact your server administrator if the problem persists. Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_CONNECTION_TERMINATED.) I couldn’t figure out why this error suddently started…

Read more