Forum Discussion
MarkShnier__You
Qrew Legend
5 years agoIf you make a date / time field called [date / time to trigger email], then you can use this code for a formula URL field to make a button to update that field which will then trigger an email notificaiton set to watch for a change in that field. In the formula below my field ID was 58
var text URL = URLRoot() & "db/" & Dbid() & "?act=API_EditRecord&rid=" & [Record ID#]
& "&_fid_58=" & URLEncode(Now());
"javascript:" &
"$.get('" &
$TriggerEmailURL &
"',function(){" &
"location.reload(true);" &
"});"
& "void(0);"
------------------------------
Mark Shnier (YQC)
Quick Base Solution Provider
Your Quick Base Coach
http://QuickBaseCoach.com
mark.shnier@gmail.com
------------------------------
var text URL = URLRoot() & "db/" & Dbid() & "?act=API_EditRecord&rid=" & [Record ID#]
& "&_fid_58=" & URLEncode(Now());
"javascript:" &
"$.get('" &
$TriggerEmailURL &
"',function(){" &
"location.reload(true);" &
"});"
& "void(0);"
------------------------------
Mark Shnier (YQC)
Quick Base Solution Provider
Your Quick Base Coach
http://QuickBaseCoach.com
mark.shnier@gmail.com
------------------------------
- CaroleVandenbe25 years agoQrew TraineeThanks - just tried and it says $TriggerEmailURL is not declared. Is this something I need to do in the Formula URL field as well?
------------------------------
Carole Vandenberg
------------------------------- MarkShnier__You5 years ago
Qrew Legend
sorry, copy paste error
var text URL = URLRoot() & "db/" & Dbid() & "?act=API_EditRecord&rid=" & [Record ID#]
& "&_fid_58=" & URLEncode(Now());
"javascript:" &
"$.get('" &
$URL &
"',function(){" &
"location.reload(true);" &
"});"
& "void(0);"
------------------------------
Mark Shnier (YQC)
Quick Base Solution Provider
Your Quick Base Coach
http://QuickBaseCoach.com
mark.shnier@gmail.com
------------------------------- CaroleVandenbe25 years agoQrew TraineeManual change of the date/time field does trigger the notification but the Formula URL does not update the date/time field. I checked - I am using the correct FID (140) and I also tried using the apptoken too. No luck - any ideas on what to try next? Thank you!
------------------------------
Carole Vandenberg
------------------------------