Forum Discussion

IvanWeiss's avatar
IvanWeiss
Qrew Captain
6 years ago

Button Error

I have a button that creates two tasks and it is generating an error that the page is not found....  Not sure where my error is so help is appreciated!

var text URLONE = URLRoot() & "db/" & [_DBID_TASKS] & "?a=API_AddRecord" &
"&apptoken=c5gchf9bhwx6umbd2ii5zdqtb5x8" &
"&_fid_6=" & URLEncode("Provide Fee Estimator for Fancy Design Proposal") &
"&_fid_8=" & URLEncode(Today()) &
"&_fid_9=" & WeekdayAdd(Today(),1) &
"&_fid_12=" & [Record ID#] &
"&_fid_21=" & [Project] &
"&_fid_23=" & "Opportunity" &
"&_fid_28=" & "Opportunity" &
"&_fid_52=" & URLEncode(ToUser("mmattera@elitestudioe.com"));

var text URLTWO = URLRoot() & "db/" & [_DBID_TASKS] & "?a=API_GenAddRecordForm" &
"&_fid_6=" & URLEncode("Create Fancy Design Proposal") &
"&_fid_8=" & URLEncode(Today()) &
"&_fid_12=" & [Record ID#] &
"&_fid_21=" & [Project] &
"&_fid_23=" & "Opportunity" &
"&_fid_28=" & "Opportunity" &
"&_fid_52=" & URLEncode(ToUser("mweiss@elitestudioe.com"));

var text REDIRECT = "&z=" & Rurl();

var text URL = $URLONE & "&rdr=" & URLEncode($URLTWO) & URLEncode("&rdr=" & URLEncode($REDIRECT));

$URL

------------------------------
Ivan Weiss
------------------------------
  • Disregard, I sorted it out!  i forgot to take out the &rdr at the end when I copied my code!

    ------------------------------
    Ivan Weiss
    ------------------------------