Skip to main content
Question

Move and delete a Record with API Buttons in Quick Base

  • February 14, 2023
  • 0 replies
  • 85 views

Please help me with the formula to move and delete the records with API button in quickbase between two table

URLRoot() & "db/" & [_DBID_INPROGRESS] & "?act=API_AddRecord"
& "&apptoken=dpvtvtrbuvtrjjd5ydp38bccn9np"
& "&_fid_23=" & URLEncode([Task Type Details - Task Type])
& "&_fid_24=" & URLEncode([Task Name Details - Task Name])
& "&_fid_13=" & URLEncode([Study Number])
& "&_fid_14=" & URLEncode([BMS-TMF-Number])
& "&_fid_15=" & URLEncode([Site Number])
& "&_fid_16=" & URLEncode([Country])
& "&_fid_17=" & URLEncode([Request Received Date])
& "&_fid_18=" & URLEncode([TAT])
& "&_fid_19=" & URLEncode([Planned Completion Date])
& "&_fid_20=" & URLEncode([Assigned])
& "&rdr=" & URLEncode(URLRoot() & "db/" & [_DBID_INPROGRESS] & "?a=dr&rid=" & [Record ID#])
& "&disprec=1"
& "&_fid_21=" & URLEncode(URLRoot() & "db/" & [_DBID_NEW_REQUEST] & "?a=API_DeleteRecord&apptoken=dpvtvtrbuvtrjjd5ydp38bccn9np&rid=" & [Record ID] & "&disprec=1"
& "&rdr=" & URLEncode(URLRoot() & "db/" & [_DBID_INPROGRESS] & "?a=dr&rid=" & [Record ID#]))



------------------------------
manohar vankireddy
------------------------------
This topic has been closed for replies.

MarkShnierYou
Forum|alt.badge.img+24

The easiest way to do this is to do the delete first.

var text Delete = URLRoot() & "db/" & [_DBID_NEW_REQUEST] & "?a=API_DeleteRecord&apptoken=dpvtvtrbuvtrjjd5ydp38bccn9np&rid=" & [Record ID];

var text AddAndDisplay = URLRoot() & "db/" & [_DBID_INPROGRESS] & "?act=API_AddRecord"
& "&apptoken=dpvtvtrbuvtrjjd5ydp38bccn9np"
& "&_fid_23=" & URLEncode([Task Type Details - Task Type])
& "&_fid_24=" & URLEncode([Task Name Details - Task Name])
& "&_fid_13=" & URLEncode([Study Number])
& "&_fid_14=" & URLEncode([BMS-TMF-Number])
& "&_fid_15=" & URLEncode([Site Number])
& "&_fid_16=" & URLEncode([Country])
& "&_fid_17=" & URLEncode([Request Received Date])
& "&_fid_18=" & URLEncode([TAT])
& "&_fid_19=" & URLEncode([Planned Completion Date])
& "&_fid_20=" & URLEncode([Assigned])
& "&disprec=1";

$Delete

& "&rdr=" & URLEncode($AddAndDisplay)



------------------------------
Mark Shnier (Your Quickbase Coach)
mark.shnier@gmail.com
------------------------------