You need to sign in to do that
Don't have an account?
Krishnan Mishra
What is wrong in the following soql query?
id i = 0037F00000M6MCHQA3; String fieldNames='name,id'; String objName = 'contact'; String queryStr = 'SELECT ' + fieldNames + ' FROM ' + objName + ' WHERE id IN :(\'i\')'; System.debug(queryStr);
The result of your query is SELECT name,id FROM contact WHERE id IN :('0037F00000M6MCHQA3'), but i want to display the seleceted records.