Posts

Showing posts from 2020

SharePoint SPFx Intro & Configuration to Create New SPFx Solution

Image
SharePoint SPFx Introduction What is SPFx? 1. SPFx is SharePoint Framework Extension which was newly introduced in SharePoint 2016 Online. 2. SPFx is introduced on replacement of  SharePoint Visual Web Parts (SP Visual Web Parts can't be deployed to SharePoint Online). 3. In SPFx we can 3 types of solutions like  Web Part, Extensions and Library . Why SPFx? 1.  The world is moving more and more towards client-side development. No matter how good the back-end architecture is, what the user gets to see is user interface. If the user doesn't feel a smooth and lag free experience, user would certainly complain. 2. With these advancements in technologies, SharePoint has decided to focus more towards improving the user experience with the product. So, this opens a world of endless possibilities for developers working with SharePoint. This means Microsoft SharePoint now has full support for open source tool chain. Configuring Development Environment    

SharePoint CSOM to Create Folders and Sub Folders based on Excel Data

Contents: 1. Reading data from the Excel sheet. 2. Connecting to SharePoint Online Site & Checking the SharePoint list is available or not. 3. Creating the SharePoint Library Folders and Sub Folders. 4. Conclusion. 1. Reading data from the Excel sheet: a. Open Visual Studio, Select New Project Creation and Select C# Console application and provide the appropriate Solution name. b. First add the required references like below.     I . using Microsoft.SharePoint.Client;     II. using System.Configuration; (Used to read the data from the App.config file)     III. using Microsoft.Office.Interop.Excel; (Excel supported file reference)     Note: If above references and not able to add please install the references from the NuGet Package  Manager Console. To Read the values from the App.config file use the below  and declare all the fields globally for re-usability.                 public   static   string  userName = ConfigurationManager.AppSettings[ "Username&qu