Looks like there's an issue with JavaScript compilation. The error message reads: Uncaught SyntaxError: Unexpected token '>' in HP_SEARCHCBHMESSAGES at ' if (Fac123 <> "") ' position 1..
Strange how SF is not accepting the if condition (Fac123 <> "" ), even after trying if (Fac123 <> '' ). Any ideas on how to resolve this?
Any help or advice would be greatly appreciated!
CALL PROC1('param1' )
CREATE OR REPLACE PROCEDURE PROC1("param1" nvarchar(100) )
returns varchar
language javascript
AS
$$
var Fac123 = param1
**if (Fac123 <> "" )**
{
sql12 = " AND "
}
return sql12 ;