Add a row to document library like a custom list?

SharePoint Asked on November 5, 2021

I want to add a row to document library without using document/file uploading. I want to write a row only text. How can i do this?

3 Answers

I would suggest you look on to the requirements first on what you are really trying to achieve, currently document libraries will need to have a document as an item before you can update its metadata.

How about maybe instead of document library, use a list, then add the files as attachments. You can use Pnp powerful library for list manipulations.

Or If you really would want it to be document library, you will need a 2 step process, on creating it in a list, then on approval or status / metadata change copy the list item to the document with the list metadata, more on combination of custom script and msflow.

Above is only a suggestions, so, Hope the concept helps on any way. Happy Coding! :)

Answered by Edwin on November 5, 2021

A library is a location on a site where you can upload, create, update, and collaborate on files with team members.

It is not supported to add a row without using document/file uploading to document library.

You need to create list to add a row without using document/file uploading.


Answered by Lisa Chen MSFT on November 5, 2021

I recommend using PnP/PnPjs. First, you need to upload the file and after that, you can update the file item. Or you can simply make a list and write text into it.

Answered by AnB on November 5, 2021

Add your own answers!

Related Questions

Error creating SPFx with React JS

1  Asked on October 28, 2020 by tezz-chaudhary


Depolying SPFX Web Part on On Prem 2019

0  Asked on October 12, 2020 by kurt-cooney


Automate posting to SharePoint with Python

1  Asked on October 4, 2020 by brinley


Workflow updating a multiple value lookup column

1  Asked on October 3, 2020 by jl421


how to search people in search box in sharepoint 2013

1  Asked on September 6, 2020 by sharepointman


How to see checked out file

2  Asked on September 2, 2020 by dingo


SharePoint o365/online – This site can’t be reached

1  Asked on August 26, 2020 by rohit-waghela


Ask a Question

Get help from others!

© 2022 All rights reserved. Sites we Love: PCI Database, MenuIva, UKBizDB, Menu Kuliner, Sharing RPP, SolveDir