I am trying to create Dynamic Soql Query using Like Operator given as below:
String tempInput ='\'%' + inputValue2 + '%\'';
soqlRAD2 = soqlRAD2 + ' and BR_Opportunity__r.Account.name Like :'+tempInput ;
But getting not able to format in properly and Getting Exception as below:
System.QueryException: Only variable references are allowed in dynamic SOQL/SOSL.
Please Help me on this..
Thanks in Advance.