Monthly Archives: December 2016

send Mails sp.js

Utilities.SendMail = function (from,to, body, subject,success,error) { //Get the relative url of the site var siteurl = _spPageContextInfo.webServerRelativeUrl; var urlTemplate = siteurl + “/_api/SP.Utilities.Utility.SendEmail”; $.ajax({ contentType: ‘application/json’, url: urlTemplate, type: “POST”, data: JSON.stringify({ ‘properties’: { ‘__metadata’: { ‘type’: ‘SP.Utilities.EmailProperties’ }, … Continue reading

Posted in sharepoint online | Leave a comment

Permissions list

var list = web.get_lists().getByTitle(titleList); list.breakRoleInheritance(false, true); var roleDefBindingAdmin = SP.RoleDefinitionBindingCollection.newObject(context); roleDefBindingAdmin.add(web.get_roleDefinitions().getByType(SP.RoleType.administrator)); var roleDefBindingColl = SP.RoleDefinitionBindingCollection.newObject(context); roleDefBindingColl.add(web.get_roleDefinitions().getByType(SP.RoleType.contributor)); var roleDefBindingRead = SP.RoleDefinitionBindingCollection.newObject(context); roleDefBindingRead.add(web.get_roleDefinitions().getByType(SP.RoleType.reader)); list.get_roleAssignments().add(groupCollection.getByName(Gr_Owner), roleDefBindingAdmin); list.get_roleAssignments().add(groupCollection.getByName(Gr_PPM_Corportate), roleDefBindingColl); list.get_roleAssignments().add(groupCollection.getByName(Gr_PPM_Network), roleDefBindingRead); context.executeQueryAsync(function () { SuccessMessage(‘permissions of list <strong>’ + titleList + ‘</strong> was updated’); … Continue reading

Posted in JSOM, sharepoint online | Leave a comment

Imports CSV

Import intelligently, CSV files in a SharePoint list. The file can be exported from another list by Microsoft Excel and used it directly in the apps. 1. Set the parameters of the imports (parameters will be pre-configured according to the … Continue reading

Posted in Published projets | Leave a comment

SharePoint Rules Permissions

Management rule permission is a feature for SharePoint 2010/2013 allows users to manage permissions in a dynamic way. The feature allows the List administrator user to define rules permissions when list item is added or updated. rules can be related to the properties … Continue reading

Posted in Published projets | Leave a comment

Workflow validation

In SharePoint there is many workflow that allow you to validate list items. But, sometimes you must change your validation system to adapt to this workflow. For example, for the three steps validation, you have exactly a three steps and … Continue reading

Posted in Published projets | Leave a comment

SharePoint 2013 Language Toggle

In SharePoint 2013 the language switcher drop down is removed … So we have tried to implement our own switcher with same concept in SharePoint 2010. Reference the Changing the Display Language – But trying to add the JavaScript was … Continue reading

Posted in Published projets, SharePoint 2013 | Leave a comment

windows server 2012- copy to Gac power shell

In Windows server 2008 R2, to copy DLL to CAG you can drag an drop the dll to ‘Assembly folder’.. but Windows server 2012 make the difference between the 32 compiled dll and the 64 compiled dll.. then if you drag … Continue reading

Posted in Administration | Leave a comment