Forum Discussion
BarbaraAlvarez1
Qrew Member
Hi Bret,
Were you able to figure out how to update specific records using the REST JSON API? I am trying to use it to update records in QB (destination) from an SQL Server(source).
I am able to add records using an upsert, but when I want it to only update changed records it adds all the records again.
Would appreciate anything you may have learned regarding this topic.
Thank You,
Barb A.
------------------------------
Barbara Alvarez
------------------------------
Were you able to figure out how to update specific records using the REST JSON API? I am trying to use it to update records in QB (destination) from an SQL Server(source).
I am able to add records using an upsert, but when I want it to only update changed records it adds all the records again.
Would appreciate anything you may have learned regarding this topic.
Thank You,
Barb A.
------------------------------
Barbara Alvarez
------------------------------
BretBernhoft
3 years agoQrew Member
Barb,
Thank you for your comment/response. I did figure out how to update individual records within QB via the RESTful JSON API, by using the associated "record key". I believe the default record key is Record ID #3 for most tables.​
I am happy to answer any questions you might have about how I accomplished this.
Best regards,
Bret Bernhoft
------------------------------
Bret Bernhoft
------------------------------
Thank you for your comment/response. I did figure out how to update individual records within QB via the RESTful JSON API, by using the associated "record key". I believe the default record key is Record ID #3 for most tables.​
I am happy to answer any questions you might have about how I accomplished this.
Best regards,
Bret Bernhoft
------------------------------
Bret Bernhoft
------------------------------
- BarbaraAlvarez13 years agoQrew MemberHello!
I don't know what records (record key) I will be updating. I may have records on my SQL table that have been updated, or none may have been updated. My expectation was that all records would be send to QB and it would only update those that had changed fields. If I have to supply a record key and this is eventually going to be an automated process, this may not work for me.
Your thoughts?
------------------------------
Barbara Alvarez
------------------------------- BretBernhoft3 years agoQrew MemberBarb,
When we submit data to QB that needs to be updated, the first thing we do is identify the table where the records exist. Then we organize the data using JavaScript, which is an array of objects that always consist of at least two Field IDs, the data and each record's key.
I can't speak with much authority on SQL servers and QB, but the program we built uses a drag and drop interface for updating record data.
I've found the QuickBase customer support to be exceptionally helpful in figuring out solutions to problems such as these. Have you considered opening a support ticket and asking these questions to QB directly?
Please let me know if there is any more information I can share concerning my experiences with updating records in QuickBase.
Best regards,
Bret Bernhoft
------------------------------
Bret Bernhoft
------------------------------