1
Answer

Need to add custom field in Document Library and Upload file

Using CSOM in Visual C# how can we add a new field in Sharepoint 2013 document library and also how can we upload the files to document library in Sharepoint 2013. I could not get the document library details in CSOM code but I could get the reference of newly created list and able to edit the list by adding new field to it.
How can I do it for a document Library.

Answers (1)

0
Photo of Nanhe Siddique
NA 3.4k 110k 9y
0
Photo of Shuvojit Halder
NA 1k 10.4k 9y
Your sql query will be like that
 
 
select COLUMN_NAME,ORDINAL_POSITION from INFORMATION_SCHEMA.COLUMNS where TABLE_NAME='Subject'
 
 
 
then you bind the result in your dropdown.