Skip to main content
Question

How to mass update one field in an existing table

  • April 1, 2017
  • 0 replies
  • 268 views

We use a table to keep track of devices.  One field is the serial number of the device (Unique).  Another field is the date the device was last seen on the network.  This date is exported from another app, and saved in a .CSV file.  How can I update the Last Seen" field with the new date?

This topic has been closed for replies.

Forum|alt.badge.img+3
  • Registered
  • April 1, 2017
Hi Jay,
You have several options, the most basic would be to use the import the data from the clipboard. For this you need:
  • admin access to your QuickBase(QB) app.
  • Make sure the device serial number is the key field in your table.
Then just go to your table in QB, click more, Import/Export, then select Import into a table from the clipboard.
Copy the data from your CSV and paste it in the box provided. Then follow the instructions to get your data into your table (make sure you select the right fields).

Other options:

  • Registered
  • April 1, 2017
How far into creating / using the app are you?  

If the serial number is always unique, then you can set that field as the "Key Field" for the table, then any imports you do from the other system will always use that unique serial number and then the "Last Date Seen" will be updated during the import.

if you need more help of how to import the records let me know.

  • Author
  • Registered
  • April 3, 2017

Thank you for the quick responses.  They are good ideas, and the other app is a non-QuickBase app (so, no direct relationship...).  I have no problems Importing from a file or the clipboard when I want to create new recordsin a table.  The problem is that QuickBase wants to create a new record instead of overwriting the existing "Last Seen" field - even when I have set the, unique, Serial Number as a key field.  I have even tried importing where those are the only two fields being imported, and it still wants to create new records. Of course, it can't since the Serial Number is set as Unique. It gives me errors stating that the serial number already exists. Is there a way to keep it from trying to create new records every time?  A setting that I'm missing?

Thank You.


AviSikenporePro
Forum|alt.badge.img+1
Like Matthew suggested, you need to set that field ("Serial Number") as the key field. 

Other option is to map the record ID with Serial number and import using the record ID .

  • Author
  • Registered
  • April 3, 2017
Thanks, Avi.  Please check my 2nd post.  I have set "Serial Number" as the key field.  I have also tried using the record number as the key field.  QuickBase gave me the same response - it tried to create new records, but couldn't since they are unique.  I'm thinking there is some setting that I'm missing that allows imports to overwrite existing data instead of creating new records.  I just can't find that setting.  I can export the records from QuickBase and the other app to .CSV files, make the changes to the 1000+ records, and import the records back to QuickBase after deleting all of the records in the table, but that seems inefficient to me.  I'm looking for a more direct approach so the data is updated in the field in QuickBase without having to delete and "restore" all of the records.

  • Registered
  • April 3, 2017
You might have duplicate Serial numbers in your csv file... Just an idea

  • Author
  • Registered
  • April 5, 2017
OK.... I'm a little embarrassed.  Turns out that I had *not* set the Serial Number as the Key Field.  I thought I was doing it, but it wasn't correct.  I finally got it set, and it's working as advertised.  I also checked my .CSV file for leading/trailing spaces, and it's clear (good idea, Avi).  Thank you all for your help.