You need to sign in to do that
Don't have an account?
Krishnan Mishra
Why i am getting the following error :System.QueryException: unexpected token: lastname
String objName = 'Contact'; string alphaSearchConct = 'A'; String fieldNames = 'name,id'; list<sObject> ct = Database.query('SELECT '+ fieldNames +'FROM '+ objName +'WHERE lastname Like:'+alphaSearchConct +'%');
Try this
All Answers
Try this
That too is not working it is now showing