Skip to main content
Question

RESTful API - how do I clone a record?

  • January 25, 2021
  • 0 replies
  • 39 views

Hello. I'm new to using the Quickbase REST API. Querying and updating records is pretty straight forward. Now i want to be able to clone a record.

We've built a button in quickbase to do this using an formula: "javascript:void(copyMasterDetailButtonHandler('&recurse=false&copyFid=16&destrid=0&sourcerid=" & [Record ID#] & "', 'bbbbbbbbb'))"

bbbbbbbbb is where the tableID goes.

I'm getting syntax errors when trying to build the formula in JSON. Any help is appreciated. Thanks!

{
    "from": "bbbbbbbbb",
    "formula": "javascript:void(copyMasterDetailButtonHandler('&recurse=false&copyFid=16&destrid=0&sourcerid=" & [Record ID#] & "', 'bbbbbbbbb'))"
    "rid": 1
}


------------------------------
Jason Bini
------------------------------
This topic has been closed for replies.

I don't know that you CAN invoke the copyMasterDetail service using the REST API, but you can call the standard API. You can find more info about it here: https://help.quickbase.com/api-guide/API_CopyMasterDetail.html

------------------------------
Blake Harrison
bharrison@datablender.io
DataBlender - Quick Base Solution Provider
Atlanta GA
404.800.1702 / http://datablender.io/
------------------------------