CurtisMiddleton
6 years agoQrew Trainee
Where to Put Application Token Code in URL Formula
Hi,
I have been scouring trying to resolve this error. Can someone please help take a look and see where I am going wrong with this?
I am receiving this error:
Here is my code:
------------------------------
Curtis Middleton
------------------------------
I have been scouring trying to resolve this error. Can someone please help take a look and see where I am going wrong with this?
I am receiving this error:
<qdbapi>
<action>API_EditRecord</action>
<errcode>24</errcode>
<errtext>Invalid Application Token</errtext>
<errdetail>An Application Token must be supplied.</errdetail>
</qdbapi>
Here is my code:
var text GoToRecord =
URLRoot() & "db/" & [_DBID_PR_LINES] & "?a=API_GenAddRecordForm&_fid_30=" & URLEncode ([Record ID#])& "&z=" & Rurl() & "&apptoken=[insert token here]";
var text COName =
URLRoot() & "db/" & [_DBID_PR_LINES] & "?a=API_EditRecord&rid=" & URLEncode ([Record ID#])& "&z=" & Rurl()
& "&_fid_11=CO#" & [Related Purchase Requisition]
& "&_fid_6=CO#" & [Change Order #] & " " & [Purchase Requisition - PO #] & "&apptoken=[insert token here]";
$GoToRecord
& "&rdr=" & URLEncode($COName)
-----------
Thank you,
------------------------------
Curtis Middleton
------------------------------