MarkComish
7 years agoQrew Assistant Captain
Help me with formula error
Can anyone see why I am getting an error?
Formula syntax error
A variable declaration must end with a semi-colon.
var text CreateNewOpportunities = URLRoot() & "db/" & [_DBID_OPPORTUNITIES] & "?act=API_RunImport&ID=10;
var text CloseOutOldOpportunities = URLRoot() & " db/" & [_DBID_OPPORTUNITIES] & "?act=API_RunImport&ID=11;
var text Redisplay = URLRoot & "db/" & dbid() & "?a=dr&rid=" & [Record ID#];
$CreateNewOpportunities
& "&rdr=" & URLEncode($CloseOutOldOpportunities)
& URLEncode("&rdr=" & URLEncode($Redisplay))
Formula syntax error
A variable declaration must end with a semi-colon.
var text CreateNewOpportunities = URLRoot() & "db/" & [_DBID_OPPORTUNITIES] & "?act=API_RunImport&ID=10;
var text CloseOutOldOpportunities = URLRoot() & " db/" & [_DBID_OPPORTUNITIES] & "?act=API_RunImport&ID=11;
var text Redisplay = URLRoot & "db/" & dbid() & "?a=dr&rid=" & [Record ID#];
$CreateNewOpportunities
& "&rdr=" & URLEncode($CloseOutOldOpportunities)
& URLEncode("&rdr=" & URLEncode($Redisplay))