Forum Discussion
PaulPeterson1
Qrew Assistant Captain
When you are making an update with an automation, the Last Modified By will be the person who created the automation. What action is being done when the "approved" button is clicked?
------------------------------
Paul Peterson
------------------------------
------------------------------
Paul Peterson
------------------------------
JessicaStevens
3 years agoQrew Member
It changes the status to an "approved" status.
------------------------------
Jessica Stevens
------------------------------
------------------------------
Jessica Stevens
------------------------------
- PaulPeterson13 years agoQrew Assistant CaptainWhat 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
------------------------------- 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
------------------------------