Home SALESFORCEAPEX How to get the Salesforce Org Wide Address ID

How to get the Salesforce Org Wide Address ID

we can get the Org Wide Address ID Using ‘Organization Wide Address’  Salesforce Object. below is the Sample Apex Class

[java]

for(OrgWideEmailAddress owa : [select id, Address, DisplayName from OrgWideEmailAddress]) {
if(owa.Address.contains(‘TBR’)) {
email.setOrgWideEmailAddressId(owa.id);
}
}

[/java]

You may also like

Leave a Comment

*