New answers tagged

2

Technically, you're at risk for SOQL injection, hence this error. You've mitigated it somewhat by only allowing a single word, but you might still run in problems if someone tries to use an apostrophe ("single quote"), such as 'hello. This would render the query filter as Name LIKE '%'hello%', which would cause an error. You need to remember to use String....


Top 50 recent answers are included