2

I have been tasked with having our application make entries into our customer's Sharepoint database.

I have found the table where I think these entries are stored ("AllUserData"), but there are almost a dozen columns where I have no idea what they are for, and how they related to other tables, especially the columns that contain GUIDs.

These seems like a very hacky way have an application talk to sharepoint. Are there suposed to be some web services or API's that I should be using to do this?

UPDATE: ON their share point site, they have a listing of equipment. In our program they want us to add another piece of equipment. I am completely new to sharepoint, but from what I have found so far it seems that I have to first find the list these pieces of equipment go into and then add the item on the fly?

  • don't touch sharepoint database, you may end up in complete mess. – P S Feb 9 '16 at 4:51
  • First of all you should try to explain what are you trying to achieve. As this now is a clear example of an XY Problem :) – Paul Strupeikis Feb 9 '16 at 9:19
5

This is completely unsupported! Do not read or write data to SharePoint databases. You need to go through the SharePoint Object Model, namely using SPWeb.EnsureUser which will add the entry if it does not exist.

1

There are many ways how to add items to SharePoint lists and the approach that you want to take is definitely not on the list.

  1. Using C# (server object model) - code needs to be run on SP server.
  2. Using C# (Client object model) - add items to SharePoint List using CSOM.
  3. SharePoint PowerShell.
  4. SharePoint Web Services (jQuery). Query Ajax function is used to POST the data to the Lists.asmx web service.
  5. SharePoint REST API.

The last two options are the ones you would want to look into.

  1. SharePoint Web Services - take a look at this and this article. It says "Update List Items" but refer to XML examples on the second link how to add New List Items.
  2. SharePoint REST API. Take a look at this and this.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.