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 ?

  • You should not really store queries in labels imo. – Adrian Larson Nov 10 '16 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 Nov 10 '16 at 13:13

use separate label for query and where.

String query = Label.query + ' ' + label.where; 
|improve this answer|||||
  • i want value of one label inside another label. Can we do so ? – s_saiyan Nov 10 '16 at 13:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.