function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Sunil PalSunil Pal 

List for get some ids

Hi,

I have a list as in debug it is showing:

====List======(StringComp:[value= 123, 456, 789, 222,])

I want to fetch 123, 456,789, 222

But not able to fetch, Can any one please help

digamber.prasaddigamber.prasad

Hi,

 

You can iterate through each elements of list using for, like shown by below code snippet:-

 

for(Integer i=0; i<StringComp.size(); i++){
	system.debug('Individual element:-->' + StringComp[i]);
}

 Let me know if you have any question around this.

 

Happy to help you!

 

Regards,

Digamber Prasad