Showing posts with label APP in SharePoint. Show all posts
Showing posts with label APP in SharePoint. Show all posts

Thursday, January 7, 2021

07 Jan

Getting ALL users from SharePoint online tenant and set userprofile property via Powershell

Getting all user profiles within SharePoint tenant using SharePoint Online CSOM APIretrieve all the users in tenant (Get-MsolUser cmdlet)iterate users and utilize SharePoint User Profiles CSOM API to retrieve user profilefunction Get-SPOContext([string]$Url,[string]$UserName,[string]$Password){   $context = New-Object...
07 Jan

Change permissions of a SharePoint list using JavaScript?

Break role inheritance for a List object and grant Full Control permissions for a current user var listTitle = 'Documents';var spCtx = SP.ClientContext.get_current();var list = spCtx.get_web().get_lists().getByTitle(listTitle);   spCtx.load(list,'HasUniqueRoleAssignments'); spCtx.executeQueryAsync( ...

Thursday, November 3, 2016

03 Nov

SharePoint App giving credentials popup

up vote4down vote Click on Start -> Run and type regedit. Locate the key 3. HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa Right click on this key and choose New > DWord Value Name this one "DisableLoopbackCheck" Double-click then on it and type the value “1” Reboot your server. (Mostly...

Thursday, October 20, 2016

20 Oct

The local SharePoint server is not available. Check that the server is running and connected to the SharePoint farm.

db_owner permissions to the account  For this Open the DataBase,  expand Security -> Logins -> right click on the account and go to properties.   properties window, click on User Mappings from the left side.  Then you can select the database and select the permission as db_owner...

Monday, June 20, 2016

20 Jun

Content editor webpart overrides Sharepoint CSS

 CSS, Selectors and its rules for CSS Specificity and you will be able to master any CSS problem. In your scenario you can wrap your content in a DIV unique  selectors ID <div id='myCEWP'>   <H1>Hello World!</H1> </div> And then apply your CSS only to that one H1 in the DIV : <style>  ...

Thursday, May 19, 2016

19 May

Set list item level permission in jsom (javascript object model)

ar siteUrl = '/sites/peakfinder'; function breakSecurityInheritanceChangeUser() {         var clientContext = new SP.ClientContext(siteUrl);     var oList = clientContext.get_web().get_lists().getByTitle('Employee');         var itemId = 5;     this.oListItem...

Tuesday, April 26, 2016

26 Apr

Item Adding / Item Added Event Receiver for Document Library

In this below script, Item Adding / Item Added Event Receiver Ways to retrieve data are: Properties.ListItem[«FieldName »] Properties.AfterProperties[«FieldName »] Properties.BeforeProperties[«FieldName »] we must add the synchronization parameter  to our xml definition. <Receiver> <Name>EventReceiver1ItemAdded</Name> <Type>ItemAdded</Type> <Assembly>$SharePoint.Project.AssemblyFullName$</Assembly> <Class>TutoTaxonomy.EventReceiver1.EventReceiver1</Class> <SequenceNumber>10000</SequenceNumber> <Synchronization>Synchronous</Synchronization> </Receiver> In...

Wednesday, December 9, 2015

09 Dec

To fix Add an App option in SharePoint 2013 "Apps you can add" is missing

Add the below lines in the MasterPage in SharePoint <!--SPM:<SharePoint:AjaxDelta id="DeltaPlaceHolderLeftNavBar" BlockElement="true" runat="server">--> <!--SPM:<asp:ContentPlaceHolder id="PlaceHolderLeftNavBar" runat="server">--> <!--SPM:</asp:ContentPlaceHolder>--> <!--SPM:</SharePoint:AjaxDelta>--> <!--SPM:<SharePoint:AjaxDelta...

Tuesday, March 17, 2015

17 Mar

how to create CRUD operation in SharePoint App in Client Object Model?

SharePoint app Client object model using ECMAScript Add List item how to create a custom properties in user profile service application Open to Central Adminstration->Application Management->Manage Service Applications-> Click on the User Profile Service...