473,386 Members | 1,757 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Append data from one sharepoint list to another

11
We are in the process of consolidating 2 teams, each of whom had their own intake form in SharePoint. We would like to take the data from one of the SharePoint lists and append it to the other. Of course, the fields aren't the same, so at the very least names need to be changed. I've tried doing it via the links to MS Access and just running an append query but where we run into issues are with the various names in the lists...they appear to be names but are stored as numeric values linked to another table called UserInfo. Each data table has it's own accompanying UserInfo table so the ID numbers will not match. If we can get this to work, the idea is, at least for a while, to have this be an ongoing process where data from one table loads to the other table every night. Anyone have an idea on how to move this data short of my re-entering 2000 records manually?
May 20 '15 #1
4 2333
computerfox
276 100+
Have you tried a query something like:

Expand|Select|Wrap|Line Numbers
  1. insert into sp_list2 (sp_list1_col1,sp_list1_col2) select sp_list2_col1,sp_list2_col2 from sp_list2;  
  2.  
I think the bigger question is how would you automate this since it's recurring every night? I believe PowerShell can automate this.
May 21 '15 #2
muttnut
11
Yes, I tried that query but I either run into conversion errors trying to insert a text into a number or a lock error trying to use a PK from the sp_list2 in the sp_list1 that's already been used. I'll look into PowerShell--thanks for your help!
May 21 '15 #3
computerfox
276 100+
Are one of the columns a primary key, then? Oh boy...
The cleanest and easiest method I think would be to make a new table call it sp_list_merge and then you can have columns ID, ID_LIST1, ID_LIST2. The actually primary key for the new table would be the new ID column and you can keep track of the ID's from list1/list2. Would this be something you'd be willing to implement? When dealing with two lists, it's not unheard of to have a third list for merging purposes.
May 22 '15 #4
muttnut
11
This is an idea that's been rattling around in my head. I've got the manager of one of the teams agreed to this compromise...we'll have to see if I can get the other to agree (of course, the alternative would seem to be you can't get your data merged, so you would think it would be an easy decision!) Thanks for taking the time to reply!
May 22 '15 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Dwayne Gaddy | last post by:
Hey all, I have a windows form with a list boxes. I have data bound the list boxes with data from my sql database. I want to use drag and drop to allow users to choose different options from the...
3
by: Jonathan Buckland | last post by:
Can someone give me an example how to append data without having to load the complete XML file. Is this possible? Jonathan
4
by: JIM.H. | last post by:
Hello, I am trying to write the data I got from a web service to my table in SQL Server I need to append the dataset wsDS to the dataset ds and do update. PVS.myWS.Loader load = new...
2
by: nishac | last post by:
I have displayed some contents from a default listings page to the combobox in another page.same page has another combo box which when selected should display its contents as appended to the old data...
1
by: Milan Mehta | last post by:
I am a newbie to MS Access. Please bear with me for such question. I have a table1 in Database1. I need to append data from table2 in Database2 to table1 of Databases1. How can I do that ? TIA...
0
by: barmatt80 | last post by:
I am trying to write a program that the user can select an approval date and using that approval date, it would query a sharepoint list and return that list item that corresponds with that list item....
2
by: ismailc | last post by:
Good day, I need help. I would like to Update a Sharepoint List (Document Library) Folders using Web Services with Javascript. I have searched on Goggle but nothing that updates a document...
4
by: 2inshix | last post by:
Hello, I'm new to this website. I want to thank everyone here for the wonderful help you are providing to the community. I stated teaching myself programming in python only a few weeks back and...
0
by: GBR20 | last post by:
Hi I am new to Perl, could you please help in how to open a XML file and append data to it. XML File: <?xml version="1.0" encoding="ASCII"?>...
1
by: manashRanjanDas | last post by:
Hi, need a small help in understanding the logic or approach. 1. I have a database (Access 2010), which is getting updated frequently by different people on the intranet by VB application. 2....
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.