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

creating a map of id, class
Hello,
I have below loop where is loop across accounlist and create few set.
Loop{
populate set 1
populate Set 2
}
use set 1
use set 2
Is there a way to create a map something like:
private static Map<Id, ResourceDTO> tempmap = new Map<Id, ResourceDTO>();
how can i access them , please
I have below loop where is loop across accounlist and create few set.
Loop{
populate set 1
populate Set 2
}
use set 1
use set 2
Is there a way to create a map something like:
private static Map<Id, ResourceDTO> tempmap = new Map<Id, ResourceDTO>();
private class ResourceDTO { public string id {get; set;} public string name {get; set;} public string documenttype {get; set;} public string documentcategory {get; set;} public string filetype {get; set;} public string content {get; set;} public List<string> permissions {get; set;} public string publishdate {get; set;} public string lastmodifieddate {get; set;} }
how can i access them , please
Try Below Code Please Mark It As Best Answer If It Helps
Thank You!
All Answers
Try Below Code Please Mark It As Best Answer If It Helps
Thank You!
Hi Charu,
the apex class is the public class, how can i create it, it is not an object