+ Start a Discussion
PavanReddyPavanReddy 

what are the collection item use in trigger?

Which collection  object  use in trigger? is it  List,Set,or Map?

 

my idea is we need to use based up on the requirement..is it true or any default collection item we should use

 

plz help me guys

 

Thanks&regards

Pavan

empucempuc

Hi Pavan,

 

Im sorry but Your question is unclear. What do you mean? 

If you are asking about the best approach to process bulk data in trigger in some more structurized way, then I would recommend using a Map.

 

Could you pls provide some more details?

Vinit_KumarVinit_Kumar

There is no default collection type in salesforce.You should be using it based upon your requirements whicheever suits the most..