Skip to Content

TheBlogReaders.com

Salesforce.com, PHP, MySQL, Javascript, Ajax, Htacces

How to get the Salesforce Org Wide Address ID

Be First!
by March 8, 2013 APEX, SALESFORCE

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


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

(960)

Previous
Next

Leave a Reply