Forum Discussion
JessicaStevens
Qrew Member
It changes the status to an "approved" status.
------------------------------
Jessica Stevens
------------------------------
------------------------------
Jessica Stevens
------------------------------
PaulPeterson1
3 years agoQrew Assistant Captain
What I meant was, does clicking approved make an API call to update the record and change the status? If so, the update could be done in the button click without needing an Automation.
------------------------------
Paul Peterson
------------------------------
------------------------------
Paul Peterson
------------------------------
- JessicaStevens3 years agoQrew MemberI believe so. This is the formula i have for the button:
var text bgcolor = "#79c043";
var text txtcolor = "white";
var text style = "style=\"text-decoration: none; background:" & $bgcolor & "; border-radius: 5px; padding: 8px 20px; color: " & $txtcolor & "; display: inline-block; font: normal 700 24px/1 \"Calibri\", sans-serif; text-align: center; text-shadow: none;";
var text url =
URLRoot() & "db/" & Dbid() & "?a=API_editRecord&rid=" & [Record ID#] &
"&apptoken=TOKEN" &
"&_fid_49=" & URLEncode("Appointment Approved")
& "&rdr="&URLEncode("QuickBase CRM URL");
Field ID 49 is the status field
------------------------------
Jessica Stevens
------------------------------- PaulPeterson13 years agoQrew Assistant CaptainTry
var user currentUser = User();
then add
"&_fid_xx=" & URLEncode($currentUser)
after "&_fid_49=" & URLEncode("Appointment Approved") where xx is the fid for the approved by field.
This is not tested and I admit I am not the greatest at the syntax for the url formulas. But this will get you in the ballpark.
------------------------------
Paul Peterson
------------------------------- JessicaStevens3 years agoQrew MemberThank you Paul,
that worked perfectly!
------------------------------
Jessica Stevens
------------------------------