Skip to main content

Posts

Read all the SharePoint User profile field using CSOM

The article shows CSOM and C# code to read all the user profile field. create a console application and copy the code below and replace the siteurl, user id and password with your sharepointURL , user id and password. You need to add three dll to run this code:- Microsoft.SharePoint.Client Microsoft.SharePoint.Client.Runtime Microsoft.SharePoint.Client.UserProfiles Add this dll and run the code. Enjoy Coding. using System; using Microsoft.SharePoint.Client; using Microsoft.SharePoint.Client.UserProfiles; using System.Security; namespace ConsoleApp1 {     class Program     {         static void Main()         {             using (ClientContext clientContext = new ClientContext(Yoursiteurl))             {                 string UName = "Your user name";               ...

SharePoint user profile fields with their internal name.

We can update the SharePoint user profile fields manually or programmatically. Also using a power shell, we can update the user profile fields. For updating the SharePoint user profile field need to enable the  Allow users to edit values for this property, SharePoint Admin can enable this property. Display Name  Actual Name Type Id UserProfile_GUID Unique Identifier SID SID binary Active Directory Id ADGuid binary Account name AccountName Person First name FirstName string single value Phonetic First Name SPS-PhoneticFirstName string single value  Last name LastName string single value Phonetic Last Name SPS-PhoneticLastName string single value Name PreferredName string single value Phonetic Display Name SPS-PhoneticDisplayName string single value Title Title string single value Manager Manager Pe...

how to create and delete folder using C#.

We can create, delete of check folder in c# using the Directory class. To create folder set the path(Location) on which you want to create the folder into  the variable, Here i am taking variable named folderPath.  1. To create folder/directory. string folderPath="E:\testing\";   if (!Directory.Exists(folderPath))           {             Directory.CreateDirectory(folderPath);           } 2. To delete folder/directory. This method used when the folder you want to delete is empty. string folderPath="E:\testing\test"; if (Directory.Exists(folderPath))             {                 Directory.Delete(folderPath);             } 3. To delete folder/directory with all the content. string folderPath="E:\testing\test"; if (Directory.Exists(folderPath)) ...

Why to choose SharePoint?

SharePoint is a collaboration tool which mainly used for document sharing, managing, controlling and storing them in its starting days. Sharepoint improving day by day and now its became very handy tools for the organization to work as a team. Organizations use the SharePoint as per their requirements. In Many ways, Organizations can use the SharePoint like: 1 Document Sharing and storage system. 2 It can be used as a collaboration tool. 3 As an Intranet system. SharePoint is very flexible and secure system. Its give the flexibility to develop custom solutions to fulfill the requirement. Reasons to choose SharePoint as an intranet system for your organizations. Flexibility :  SharePoint is very flexible and provide the functionality to develop and deploy custom solutions on SharePoint. one can also use the third party add-ins to fulfill their needs. Security: Sharepoint provides inbuilt security system which persists own permission levels. you can give permissi...

Shortcut keys which every windows user must know.

Shortcut keys play important role if we want to use the windows effectively. Window Key = Open or close start menu. Windows + E    =  Open the file explore.   Windows + D    = Show or hide the desktop. F11 = Minimize or Maximize the active window. Windows + S = Open search Windows + L = Lock the system . Window + R = Open the run dialog box. Windows + Tab = Open the task view. Windows + Space Bar = Switch input and language keyboard. Windows + Plus(+) = Open magnifier(To zoom in or zoom out).    Windows + A = Open Action center. Windows + T =  Move through the apps on taskbar.

Insert item in list using CSOM SharePoint

To insert item into list using csom code. You can create a consol application using visual studio and also use the code mentioned below. You can interact  with sharepoint list using JSOM,CSOM or using rest api. List operation using csom. using Microsoft.SharePoint.Client;  using System;  using System.Collections.Generic;  using System.Linq;  using System.Security;  using System.Text;  using System.Threading.Tasks;  namespace ConsoleApp1 { class Program { static void Main(string[] args) { using (ClientContext clientContext = new ClientContext("insert url upto list")) { string Uname = "Your ID"; string password = "Password";  SecureString Securepasseord = GetSecureString(password);  clientContext.Credentials = new SharePointOnlineCredentials(Uname, Securepasseord); clientContext.ExecuteQuery(); List oList = clientContext.Web.Lists.GetByTitle("metalist");  ListItemCreationInformation listCreationIn...

Simplest way to get latest updates from blogs and website.

Simplest way to get latest update from blogs and website is RSS feed.To get all the latest updates from the websites or blogs need to subscribe the RSS feed of blog or website.What is RSS , what are RSS feeds , how we can use them. RSS is short form of Really simply syndication or rich site summary. If you want to save the time of visiting site or blog to get updates, you just need to subscribe the RSS feed. Subscribing the RSS feed is very easy and once you subscribe it, you can read updates delivered to you by RSS feeds using the "feed readers".

SharePoint Designer workflow error : server side activities have been updated. you need to restart sharepoint designer to use the updated version of activities.

While working with SharePoint designer at the time of creating custom forms and workflows, on editing the workflow or creating new one, error occurred and stated as : "server side activities have been updated. you need to restart sharepoint designer to use the updated version of activities." to resolve this error follow steps provided below. Before moving on the steps mentioned below some time it's needed to clear the cache. First clear the cache from locations mentioned below: %APPDATA%\Microsoft\Web Server Extensions\Cache %APPDATA%\Microsoft\SharePoint Designer\ProxyAssemblyCache %USERPROFILE%\AppData\Local\Microsoft\WebsiteCache %APPDATA%\Microsoft\SharePoint Designer Steps to resolve this problem: To resolve this issue you need to update the SharePoint designer and to do so you have to follow this two steps : 1. Check whether the Microsoft SharePoint 2013 service pack 1 is installed or not in your system.If not Please download it and inst...

Run commands for Windows user.

Windows user can do all the task and  use all the tools and get access to control panel in quick way using Run command window. To open run command window, press win + R key. Some most common and useful windows run command are as follow: cmd = To open command prompt ncpa.cpl = open network connections sysdm.cpl = open system properties timedate.cpl= open date and time properties powercfg.cpl = power management mmsys.cpl = open sound properties main.cpl= mouse properties desk.cpl= display properties joy.cpl = open game controller inetcpl.cpl = internet properties main.cpl keyboard = keyboard properties firewall.cpl= if you want to manage the windows firewall settings services.msc = open the service console. mstsc =  use this command to open the remote desktop connection. msinfo32 = using this command we can get the system information,open the system information calc = to open the calculator. devmgmt.msc= windows device manager, where you...