Posts

Showing posts with the label SharePoint Online

Set Choice Field Allow 'Fill-in' Choice option As TRUE For all the Lists in Site Collection Programmatically using C# CSOM in SharePoint Online

Here I demonstrate how to update Choice column property AllowFillInChoice as True for all the Lists in Site Collection using console application using System ; using System.Collections.Generic ; using System.Linq ; using System.Text ; using System.Threading.Tasks ; using Microsoft.SharePoint.Client ; using System.Security ; namespace AllowFillInChoice { class Program { static void Main ( string [] args) { using ( var ctx = new ClientContext( "https://@@@@@@@.sharepoint.com/sites/Dev/" )) { string userName = "---------@-------.onmicrosoft.com" ; string pwd = "--------" ; var securePassword = new SecureString(); ; foreach ( char c in pwd) { securePassword.AppendChar(c); } securePassword.MakeReadOnly(); try {

Filter with NULL value using REST API in SharePoint

$filter=FIeldName ne null url: _spPageContextInfo.webAbsoluteUrl+"/_api/Web/Lists/GetByTitle('Products')/Items?$select=Name,Price,Size&$filter= Size ne null ", The above URL returns the items not having Size field value as Null . ne - Not Equal                     

Create WebPart using SharePoint Framework and test it in SharePoint online Workbench

Image
Check this link to setup the SharePoint Framework environment http://techchaitu.blogspot.com/2017/09/what-is-sharepoint-framework-development.html SharePoint Framework  is a page and web part model that provides full support for client-side SharePoint development, easy integration with SharePoint data and support for open source tooling. With the SharePoint Framework, you can use modern web technologies and tools in your preferred development environment  to build productive experiences and apps that are responsive and mobile-ready from day one.   Create a new SharePoint Framework project Open any Windows Powershell/command  tool. I prefer to use Powershell. Navigate to a folder or create a new folder. Run the Yeoman Generator to create SharePoint Framework solution package. yo @microsoft/sharepoint Fill the details required for creating a new SharePoint solution and choose Enter Yeoman has started working on the scaffolding of the project. It will install