Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Bookmarks inbookmarks:mine
inbookmarks:1234
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options user 102563

A list is an ordered collection of elements that are distinguished by their indices. List elements can be of any data type—primitive types, collections, sObjects, user-defined types, and built-in Apex types.

-2
votes
3answers
I have three methods: Method1: public static void method1() { // call method 2 that returns a list method2(); // call method 3 and pass list retuned from method 2 method3(myList); } Method 2: private … static list<objName> method2() { List<objName> myList = new List<objName>(); // remaining code return myList; } Method 3: public static Map<x,y> method3(List<myObj> myList) { // other code } My …
asked Aug 19 '21 by MShal
0
votes
Declare the list in Method1 and pass it as parameter to both Method2 and Method3. … Method 1: public static void method1() { List<myObj> myList = new List<myObj>(); method2(myList); method3(myList); } Method 2: public static List<myObj> method2(List<myObj> myList) { // other …
answered Aug 19 '21 by MShal
0
votes
2answers
DeveloperName == 'Patient_Account') { // Step 2: Create a new Patient Journey record List<Patient_Journey__c> patientJourney = new List<Patient_Journey__c>(); … <Patient_Journey_Step__c> patientJourneySteps = new List<Patient_Journey_Step__c>(); for (String getJSteps : journeyStepMD.keySet()) { // Step 4: Create a …
asked Aug 17 '21 by MShal
0
votes
1answer
.get('CaseRecordPage').getRecordTypeId(); List<Case> caseUpdate = new List<Case>(); List<Id> listIds = new List<Id>(); for (EmailMessage eMsg : emUpdateCase) { listIds.add … Invalid loop variable type expected Case was Id Method does not exist or incorrect signature: void values() from the type List
asked Aug 11 '21 by MShal