-
SharePoint REST API/Client Code to send mails with HTML/Rich Text Content to SharePoint Users
Following is the code snippet to send emails to local SharePoint users with HTML Content in the email body. The recipients should be valid SharePoint Users. Mails cannot be sent to non-SharePoint users and external users. function sendMail(toList, subject, mailContent) { var restUrl = _spPageContextInfo.webAbsoluteUrl + "/_api/SP.Utilities.Utility.SendEmail", restHeaders = {...
-
SharePoint JSOM: How to create a list instance using a custom list definition?
Using Default/OOB List Definitions Below is the code to create a list instance on a SharePoint site using one of the existing (OOB) list definitions. var clientContext = SP.ClientContext.get_current(); var oWebsite = clientContext.get_web(); var listCreationInfo = new SP.ListCreationInformation(); listCreationInfo.set_title('My Announcements List'); listCreationInfo.set_templateType(SP.ListTemplateType.announcements); this.oList = oWebsite.get_lists().add(listCreationInfo); clientContext.load(oList); clientContext.executeQueryAsync( Function.createDelegate(this, this.onQuerySucceeded), Function.createDelegate(this,...
-
How to Provision Subscription Settings Service Application and Proxy for SharePoint Server 2013
Subscription Settings Service Application and the proxy are two of the prerequisites for developing SharePoint Add-Ins (SharePoint Apps). But this service application cannot be provisioned through the UI. A Subscription Settings Service Application can be created only through PowerShell and below is the script to provision the Service Application and...
-
How to migrate Infopath Path form with code from MOSS (SharePoint 2007) to SharePoint Server 2013
In one of the migrations from MOSS to SharePoint 2013, I had a application which is using InfoPath (2007) form with code. In this blog I would share the difficulties we faced While migrating this application to SharePoint 2013, and solutions we followed to get the InfoPath form with code...