• MJR
  • NEWBIE
  • 0 Points
  • Member since 2013

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 4
    Questions
  • 2
    Replies

What is sObject .....can anyone give deep meaning of it 

  • June 28, 2013
  • Like
  • 0
List<Account>Acl = new List<Account>([Select Id,name 

from Account limit 10 ]);

 Map <Id,Account> mpn = new map<Id,Account>();

 for (Account a : acl)
 { mpn.put(a.Id,a);
 }
 system.debug(mpn.get('0019000000PDZvkAAH')); and i should not cal the contact through dot operator ie (mpn.get('0019000000PDZvkAAH').contacts)

 can any one suggest any idea

 

  • June 24, 2013
  • Like
  • 0

my code is

Map<Id,Account> newmp = new map<Id,Account>([Select Id,Name from Account limit 10]);
for(Account acc : newmp.values())
{
string codesId = newmp.get('United Oil & Gas, UK');

system.assertEquals(codesId,'0019000000PCwb9AAD');
system.debug('account:'+codesId);
}

  • June 21, 2013
  • Like
  • 0

I Have a big confussion in using lists and set  in triggers can any one guide me when to use list and sets in trigger

  • June 20, 2013
  • Like
  • 0
List<Account>Acl = new List<Account>([Select Id,name 

from Account limit 10 ]);

 Map <Id,Account> mpn = new map<Id,Account>();

 for (Account a : acl)
 { mpn.put(a.Id,a);
 }
 system.debug(mpn.get('0019000000PDZvkAAH')); and i should not cal the contact through dot operator ie (mpn.get('0019000000PDZvkAAH').contacts)

 can any one suggest any idea

 

  • June 24, 2013
  • Like
  • 0

my code is

Map<Id,Account> newmp = new map<Id,Account>([Select Id,Name from Account limit 10]);
for(Account acc : newmp.values())
{
string codesId = newmp.get('United Oil & Gas, UK');

system.assertEquals(codesId,'0019000000PCwb9AAD');
system.debug('account:'+codesId);
}

  • June 21, 2013
  • Like
  • 0