There is a label label_query which contains the SOQL query say 'Select name from Account where recordtypeId = 'value coming from another label'. In another label is stored recordtypeid. Now to use this recordtype label in label_query what one needs to do ? Is it even possible ?
1 Answer
use separate label for query and where.
String query = Label.query + ' ' + label.where;
system.debug(query);
system.debug(database.query(query));