Category: SharePoint Development

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

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