Identify which OrgWideEmailAddress records are valid for current user

Unfortunately, from what I've read, what you want to do isn't possible.

According to the Objects API, you can find all the supported calls at this link which includes the schema call you've already made. That being said, despite what's implicit in the API, DML is not allowed on the OrgWideEmailAddress object.

On the IdeaExchange, you'll find the following submission: Allow DML for OrgWideEmailAddress, EmailServicesFunctio And EmailServicesAddress which also includes "Status of OrgWideEmailAddress needs to be added". Perhaps you might want to go to the link and add your vote.

Tags:

Email

Apex