A sample JS script to set the list permission using REST api. Steps: 1. Get the RoleDefinition Id. 2. Get the group Id from the group name. 3. Set the list permission using the RoleDefinitionId, Group Id. Note: 1. The script selects only the relevant properties instead of retrieving the full list of object properties.
1. Introduction to Client Object Model. Client Object Model is nugget feature of SharePoint 2010. It is the subset of server object model which defined in Microsoft.sharepoint.dll it is used to manipulate and consume share point data. Client object Model Implement on Window communication Foundation (WCF) service (…/_vti_bin/client.svc) Note: You Need Microsoft.sharepoint.Client.dll and Microsoft.SharePoint.Client.Runtime.dll For working
For our on-Premise SharePoint 2013 site, we needed to be able to prevent users from viewing other people’s submitted leave requests forms. In addition, we needed to prevent users from modifying their own forms after submission. The final requirement that we had was that the forms were not to be moved to a different library
A sample JS to modify the list choice field options. var context = new SP.ClientContext.get_current(); var web = context.get_web(); var cldList = web.get_lists().getByTitle(“Calendar”); var categoryField = cldList.get_fields().getByInternalNameOrTitle(“Category”); var categoryChoiceField = context.castTo(categoryField, SP.FieldChoice); context.load(categoryChoiceField); context.executeQueryAsync(function () { var categoryChoices = categoryChoiceField.get_choices(); var categoryTC = categoryChoices.filter(function (choice) { return choice === “MyEvents”; }); if (categoryTC.length == 0)
There are several issues that can happen while migrating SharePoint from one version to another. Here is our tip on how to troubleshoot an issue with calling asmx web service in SharePoint 2010 through jQuery. After migration of a SharePoint 2007 application to SharePoint 2010 our jQuery scripts that communicate with ASMX web services suddenly
Scenario: Display a aggregated calendar view from all the calendar list in a single page. Reference: JQuery – Full Calendar plugin I am going to use the Jquery, Full Calendar plugin, Content editor webpart to demonstrate how to display the Single aggregated calendar using the SharePoint search result (Javascript – CSOM). Steps: Add a Content Editor
Ya the title has a lot to say and I am disappointed as I write this post. So I came to a point while I am implementing a SharePoint 2013 project to a client in Egypt, where they are in need for the Organization Chart, ok no problem, or I thought no problem!! I configured
Everyone is used to seeing this logo right? When you’re working with SharePoint 2013 on premises the web application has a property called SuiteBarBrandingElementHTML that you can update with custom HTML to update what is shown in the upper left corner of the page. In office 365, we do not have access to the web application
I was looking into the option of auto deploying an custom developed app at the time of creating a site in O365 / SP2013 environment. Scenario: 1. Custom app (MVC – Azure hosted) – Need to deploy it automatically so that it can customise the site created using a site template. (i.e. attaches the remote
Promoted Links – Tiles view webpart is one of the easiest way to present the new Tile interface to the user. The default view only renders the Tiles horizontally and to have wrapped tile view, we have to customise it. For our O365 project, we have customised the Tiles view using the following Javascript. Default
Page [tcb_pagination_current_page] of [tcb_pagination_total_pages]