You need to sign in to do that
Don't have an account?

How to create a Map of List elements with each other
Hi,
I have an AggregateResult List which has Dealer Names e.g. :
List<AggregateResult> myList = [Select Dealer_Name From SampleObject GROUP BY Dealer_Name ];
Result : Dealer1, Dealer2 ,Dealer3
I want to create a map of Each dealer with the remaining dealers.
E.g. :
Dealer1 => Dealer2 ,Dealer3
Dealer2 => Dealer1,Dealer3
.....and so on
How to do that?
I have an AggregateResult List which has Dealer Names e.g. :
List<AggregateResult> myList = [Select Dealer_Name From SampleObject GROUP BY Dealer_Name ];
Result : Dealer1, Dealer2 ,Dealer3
I want to create a map of Each dealer with the remaining dealers.
E.g. :
Dealer1 => Dealer2 ,Dealer3
Dealer2 => Dealer1,Dealer3
.....and so on
How to do that?
Please check if this works