function readOnly(count){ }
Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
How can I convert the Set od IDs to List of IDs. Because I am using 'oldmap' concept?
-Kaity
I guess you can easily do that
List<Id> idList = new List<Id>(); idList.addAll(trigger.oldMap.keySet());
Hi ,
You can try the following way to convert from Set to List in Salesforce.
Ex:
set<string> sId = new set<string>();sid.add('xxx');
List<string> lId = new list<string>();
for(string idVal: sid){lId.add(idVal);}
system.debug('....listVal...'+lid);
Thanks,
Subhani,
DBSync,
www.mydbsync.com
Check this site
http://www.infallibletechie.com/2013/07/how-to-convert-set-to-list-in-salesforce.html
Cheers!!
Regards,
Magulan D
Hi.
You can just use the following shorten form List<Id> idList = new List<Id>( trigger.oldMap.keySet() );
I guess you can easily do that
Hi ,
You can try the following way to convert from Set to List in Salesforce.
Ex:
set<string> sId = new set<string>();
sid.add('xxx');
List<string> lId = new list<string>();
for(string idVal: sid){
lId.add(idVal);
}
system.debug('....listVal...'+lid);
Thanks,
Subhani,
DBSync,
www.mydbsync.com
Check this site
http://www.infallibletechie.com/2013/07/how-to-convert-set-to-list-in-salesforce.html
Cheers!!
Regards,
Magulan D
Hi.
You can just use the following shorten form
List<Id> idList = new List<Id>( trigger.oldMap.keySet() );