Forum Discussion
JamesDalton
5 years agoQrew Trainee
So I've been trying to use Authentication Tokens with my code.
However, even when I assign the token to the application, I get the following error message
------------------------------
James Dalton
------------------------------
var text URL= URLRoot() & "db/" & [_DBID_STATUS_LOG] & "?act=API_DeleteRecord&rid=" & [Latest Child Record]
& "&apptoken= de8maaedeufhmicsjctspcgqy4ea";
$urlHowever, even when I assign the token to the application, I get the following error message
<qdbapi>
<action>API_DeleteRecord</action>
<errcode>24</errcode>
<errtext>Invalid Application Token</errtext>
<errdetail>The Application Token de8maaedeufhmicsjctspcgqy4ea has not been assigned to this Application. To read about assigning an Application Token to your application go to https://help.quickbase.com/user-assistance/app_tokens.html</errdetail>;
</qdbapi>
Does it take time for QuickBase to recognize an assigned token? 
I would prefer to make tokens required if that means more security for my app.
Thanks in advance for any insight.
------------------------------
James Dalton
------------------------------
MarkShnier__You Qrew Legend
Qrew Legend
5 years agoRemove the space. :)
(been there done it).
Sorry , Copy Paste not working in my iPad over morning coffee.
apptoken=de8 .....
------------------------------
Mark Shnier (YQC)
Quick Base Solution Provider
Your Quick Base Coach
http://QuickBaseCoach.com
mark.shnier@gmail.com
------------------------------
(been there done it).
& "&apptoken= de8maaedeufhmicsjctspcgqy4ea";Sorry , Copy Paste not working in my iPad over morning coffee.
apptoken=de8 .....
------------------------------
Mark Shnier (YQC)
Quick Base Solution Provider
Your Quick Base Coach
http://QuickBaseCoach.com
mark.shnier@gmail.com
------------------------------
- MarkShnier__You5 years agoQrew Legend Here is the full code you need, as after you do the delete, you need to refresh the parent.
 
 (without the space in the app token, followed byvar text URL= URLRoot() & "db/" & [_DBID_STATUS_LOG] & "?act=API_DeleteRecord&rid=" & [Latest Child Record] & "&apptoken= de8maaedeufhmicsjctspcgqy4ea";
 var text ReDisplay = URLRoot() & "db/" & [_DBID_of the parent table] & "?a=dr&rid=" & [Related Parent];
 $URL
 & "&rdr=" & URLEncode($Redisplay)
 ------------------------------
 Mark Shnier (YQC)
 Quick Base Solution Provider
 Your Quick Base Coach
 http://QuickBaseCoach.com
 mark.shnier@gmail.com
 ------------------------------- JamesDalton5 years agoQrew TraineeThank you!
 ------------------------------
 James Dalton
 ------------------------------