BrianCafferelli
8 years agoQuickbase Staff
How can I add an approve or reject button to my email notifications?
How can I add an approve or reject button to my email notifications?
In a recent webinar, a customer asked how they might use an email notification to embed an "approve" and "reject" button such that when their client opened their email, they could make the selection right there in the email and the result would be to update the record and log the client's choice to include an audit trail of the person, the decision date and time.
You can do this with a simple Formula URL button and the following sample code:
URLRoot() & "db/" & Dbid() & "?act=API_EditRecord&apptoken=eqfdujiwskwidvd3jphn866p&_fid_97=Approved&rid=" & [Record ID] & "&rdr=" & URLEncode(URLRoot() & "db/" & Dbid() & "?act=dr&rid=" & [Record ID])
Where in this example the key field for this project is [Record ID] and the field that is being "Approved" is fid_97. (Update these to reflect your application)
When someone presses the "Approved" button it edits the record and changes the value of field 97 with "Approved" and then redirects to display the edited record.