You need to sign in to do that
Don't have an account?
Compile Error: expecting a semi-colon, found '+Leadsource+'
if (!Name.equals(''))
soql += ' and firstname LIKE \'String.escapeSingleQuotes(Name)'+'%\'';
if (!Department.equals(''))
soql += ' and Department LIKE \'String.escapeSingleQuotes(Department)'+'%\'';
if (!Leadsource.equals(''))
soql += 'and Leadsource includes (''+Leadsource+'')'; /***************Error in this line********************/
soql += ' and firstname LIKE \'String.escapeSingleQuotes(Name)'+'%\'';
if (!Department.equals(''))
soql += ' and Department LIKE \'String.escapeSingleQuotes(Department)'+'%\'';
if (!Leadsource.equals(''))
soql += 'and Leadsource includes (''+Leadsource+'')'; /***************Error in this line********************/
if (!Leadsource.equals(''))
soql += ' and Leadsource includes (\''+Leadsource+'\')';