You need to sign in to do that
Don't have an account?
kiran2000
convert set to string
Hi,
I need to convert set of ids to string.
Set<id> accIdSet = new Set<Id>();
I need to contcatinate the string to another string.
after processing i need to retreive the set of ids.
Can someone show me some example around this.
Thanks
There are many ways to do convert set into string. See below. Let me know if you need more help.
Set<ID> accIDSet = new Set<Id>();
accIDSet = [select id from account ------your SOQL Query--------];
String idString;
for(ID ids : accIDSet)
{
idString = ids + userrec.email + ',' ;
}
idString = idString.substring(0, idString.length()-1);
Hi,
You can use the bellow logic