Adding Item to Document Library

Home Forums SPJS-Utility Adding Item to Document Library

Viewing 1 reply thread
  • Author
    Posts
    • #35562
      Mitchell T
      Participant

        Hello Alex,

        I’m trying to add items to a document library using javascript. I’m trying to use spjs.utility.addItem() function. My question is how do I enter in information for the ‘Name’ field. Is there a way to do this? Or is there a better method for adding items to a document library?

        -Mitch

      • #35622
        Alexander Bautz
        Keymaster

          Hi,
          Sorry for not replying – the email notification on my site broke after an update and I didn’t catch your question.

          You cannot add an item to a document library using spjs.utility.addItem() because you have to add a document and not just metadata. It is possible to create a document from text using code, but not using that function.

          If you haven’t moved on you can try to explain what you are trying to achieve and I’ll see if I can help you on the way.

          Alexander

      Viewing 1 reply thread
      • You must be logged in to reply to this topic.