• Bharath CTS
  • NEWBIE
  • 0 Points
  • Member since 2017

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 1
    Replies
I want to use addAll() instead of add() in below code. How to achieve this?
//one list is there: myList1
List<String> myList1 = New List<String>;

//I want to add Name field values from my Custom Meta Data to myList
for(myCustomMetaData__mdt mtdVar: [select id, Name from myCustomMetaData__mdt LIMIT 1000]){
            myList1.add(mtdVar.Name);
        }