0

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 ?

2
  • You should not really store queries in labels imo.
    – Adrian Larson
    Commented Nov 10, 2016 at 12:53
  • I just take this as an example for my question. My concern is can we use a label value inside another label ?
    – s_saiyan
    Commented Nov 10, 2016 at 13:13

1 Answer 1

0

use separate label for query and where.

String query = Label.query + ' ' + label.where; 
system.debug(query);
system.debug(database.query(query));
1
  • i want value of one label inside another label. Can we do so ?
    – s_saiyan
    Commented Nov 10, 2016 at 13:14

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .