Skip to main content
Question

Make a button generate a quick note

  • November 3, 2021
  • 0 replies
  • 68 views

Hello,

I've made a field called CALL BUTTON (Showing as Called) as a formula - URL

This button is intended to add a note to a notes field called "Call Log". The note will be timestamped and label it as:

"[Timestamp, User] Call made"

Can someone support me with the appropriate input? Thank You




------------------------------
Anthony Wong
------------------------------

This topic has been closed for replies.

  • Registered
  • November 4, 2021
It sounds like you can use the EditRecord API

Assuming the field id of the notes field is 6:
https://target_domain/db/target_dbid?a=API_EditRecord&rid=[rid of record to update]&_fid_6=[value to input]&apptoken=app_token&rdr=[url to redirect to after updating]

------------------------------
Ahuva Brown
------------------------------

Sounds like you just need a simple API_EditRecord.
Also, you need to activate the "log entries" option on the property of the field so it would keep track of who/when as well. 

URLRoot() & "db/" & Dbid() & "?a=API_EditRecord" &
"&rid=" & [Record ID#] &
"&apptoken=apptoken" &
"&_fid_id=Completed" &
"&rdr=" &
URLEncode(URLRoot() & "db/" & Dbid() &"?a=dr&rid=" & [Record ID#])

Replace the the values in bold with 1) app token 2) field id of your notes field
Hope this helps. 



------------------------------
Francesco Spiga
------------------------------