Forum Discussion

JasonBiniewski's avatar
JasonBiniewski
Qrew Trainee
4 years ago

RESTful API - how do I clone a record?

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
------------------------------

2 Replies

    • JasonBiniewski's avatar
      JasonBiniewski
      Qrew Trainee
      Thanks for the suggestion, I ended up doing it this way.  Eventually they'll get into the REST API ​

      ------------------------------
      Jason Bini
      ------------------------------