Forum Discussion
AhuvaBrown
5 years agoQrew Cadet
You can use API_EditRecord in a URL Button, like this:
URLRoot() & "db/" & Dbid() & "?a=API_EditRecord" &
"&rid=" & [Record ID#] &
"&apptoken=token" &
"&_fid_6=& "value" &
"&_fid_7=" & "value" &
"&_fid_8=" & "value" &
"&rdr=" &
URLEncode(URLRoot() & "db/" & Dbid() &
"?a=dr&rid=" & [Record ID#])
------------------------------
Ahuva Brown
------------------------------
URLRoot() & "db/" & Dbid() & "?a=API_EditRecord" &
"&rid=" & [Record ID#] &
"&apptoken=token" &
"&_fid_6=& "value" &
"&_fid_7=" & "value" &
"&_fid_8=" & "value" &
"&rdr=" &
URLEncode(URLRoot() & "db/" & Dbid() &
"?a=dr&rid=" & [Record ID#])
------------------------------
Ahuva Brown
------------------------------
- AlexBennett35 years agoQrew TraineeI'll see if I can give that a shot.
Thanks!!
------------------------------
Alex Bennett
------------------------------ - AlexBennett35 years agoQrew TraineeHey Ahuva,
Could you give me some tips on getting this set up? I've got the API Call set up and created an app token, changed the fid's to the desired values, but getting errors for invalid input (Code 2). Will this allow me to create a button that will add these values to the fields I select?
Thanks,
------------------------------
Alex Bennett
------------------------------- AhuvaBrown5 years agoQrew CadetCan you show me your code and the error messages?
------------------------------
Ahuva Brown
------------------------------- AlexBennett35 years agoQrew Trainee
URLRoot() & "db/" & Dbid() & "?a=API_EditRecord" & "&rid=" & [Record ID#] & "&apptoken=uw4jq7b9wmt6ybm59yqvc2dzpdj" & "&_fid_53=" & "3" & "&_fid_60=" & "3" & "&_fid_67=" & "2" & "&_fid_74=" & "2" & "&rdr=" & URLEncode(URLRoot() & "db/" & Dbid() & "?a=dr&rid=" & [Record ID#])
------------------------------
Alex Bennett
------------------------------