Posts

Showing posts from December, 2017

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 {