Is there a method in which we can get all the org wide email addresses in an org with their Ids without using SOQL? I was hoping that there would be something similar to the getall method for Custom Settings or the getUserInfo class but I can't find anything.
Motivation: Just avoiding a SOQL query to the transaction.
Update:
This is what I am planning on implementing if we have to use SOQL
public static map<String,OrgWideEmailAddress> emailMap{
get{
if(emailMap== null){
emailMap= new Map<String, OrgWideEmailAddress>();
List<OrgWideEmailAddress> emailList= [SELECT Id, Address FROM OrgWideEmailAddress];
For(OrgWideEmailAddress o : emailList){
orgEmailMap.put(o.Address, o);
}
}
return emailMap;
}
set;
}
List Custom Setting
perhaps.