Forum Discussion
BreeMackey
6 years agoQuickbase Staff
Hi Gaurav -
Have you considered utilizing Automations for this update, instead? Might be easier to set up.
For your formula above, is it a Formula URL button? If so, there are a few things you need:
URLRoot()
& "db/"
& [_DBID_MONTHLY_TOTAL]
& "?act=API_EditRecord&rid="
& URLEncode([Related Parent Field Name])
& "&_fid_14="
& URLEncode([Date])
& "&rdr="
& URLEncode(URLRoot()
& "db/" & Dbid()
&"?a=dr&rid="
& [Record ID#])
------------------------------
Bree Mackey
------------------------------
Have you considered utilizing Automations for this update, instead? Might be easier to set up.
For your formula above, is it a Formula URL button? If so, there are a few things you need:
- You have this line in there twice: URLRoot() & "db/" &[_DBID_MONTHLY_TOTAL] & "?act=API_EDITRecord"&
- You need to indicate the Record ID# of the parent you're editing (see line 4 below): "rid=" & URLEncode([Related Parent Field Name])
- Include a redirect for where you want the user to land after the API call is made (see line 8 through 12 which will take them back to the child record) with &rdr=
URLRoot()
& "db/"
& [_DBID_MONTHLY_TOTAL]
& "?act=API_EditRecord&rid="
& URLEncode([Related Parent Field Name])
& "&_fid_14="
& URLEncode([Date])
& "&rdr="
& URLEncode(URLRoot()
& "db/" & Dbid()
&"?a=dr&rid="
& [Record ID#])
------------------------------
Bree Mackey
------------------------------