Timeline for How to Prevent sandbox from sending Workflow emails to "Additional Emails" in Email Alerts using Metadata API in Apex?
Current License: CC BY-SA 4.0
16 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Oct 8, 2024 at 16:27 | comment | added | David Cheng | You will have to make callouts to the Metadata API, see documentation for one possibility. | |
| Oct 8, 2024 at 16:04 | comment | added | Ankit Kamboj | @DavidCheng, After conducting research, I've concluded that the Metadata Service only supports retrieving metadata and does not allow updates. Could you have alternative approaches for this requirement? | |
| Oct 7, 2024 at 15:45 | comment | added | David Cheng | Are you using the opensource MetadataService? Have you checked the issues in that repository and done any other research? | |
| S Oct 7, 2024 at 15:06 | history | suggested | Bartosz Śliwiński | CC BY-SA 4.0 | improved formatting |
| Oct 7, 2024 at 10:03 | review | Suggested edits | |||
| S Oct 7, 2024 at 15:06 | |||||
| Oct 7, 2024 at 4:41 | comment | added | Ankit Kamboj | @DavidCheng, I am getting below error while executing the code in Developer console: System.CalloutException: Web service callout failed: WebService returned a SOAP Fault: type is not a valid metadata type for reading faultcode=sf:UNKNOWN_EXCEPTION faultactor= | |
| Oct 7, 2024 at 4:40 | history | edited | Ankit Kamboj | CC BY-SA 4.0 | added 284 characters in body |
| Oct 6, 2024 at 0:17 | comment | added | David Cheng | You need to describe "not working at all". Are you getting a specific error? What do you see in your debug log? Please edit your post to include the details. | |
| Oct 5, 2024 at 4:28 | comment | added | Ankit Kamboj | @DavidCheng, that code is not working at all. I need a generic solution like Apex code script that interacts with the sandbox API to update each Workflow Alert. | |
| Oct 5, 2024 at 4:27 | comment | added | Ankit Kamboj | @identigral, In the suggested solution, they advised changing the deliverability setting to "System Email Only." However, this is not the appropriate fix for my requirement. I need a more generic solution, such as an Apex code script that interacts with the sandbox API to update each Workflow Alert, specifically modifying the value in the "Additional Emails" field, e.g., changing [email protected] to [email protected]. | |
| Oct 4, 2024 at 22:38 | comment | added | David Cheng | You need to describe the specific error or issue with your class. Please edit your post to include those details. | |
| Oct 4, 2024 at 17:41 | review | Close votes | |||
| Nov 8, 2024 at 3:05 | |||||
| Oct 4, 2024 at 17:16 | comment | added | identigral | ^^^ Merely 11+ year old answer is still correct. The more things change, the more they stay the same. | |
| Oct 4, 2024 at 17:16 | comment | added | identigral | This question is similar to: Preventing sandbox from sending Workflow emails to "Additional Emails". If you believe it’s different, please edit the question, make it clear how it’s different and/or how the answers on that question are not helpful for your problem. | |
| S Oct 4, 2024 at 15:57 | review | First questions | |||
| Oct 7, 2024 at 10:03 | |||||
| S Oct 4, 2024 at 15:57 | history | asked | Ankit Kamboj | CC BY-SA 4.0 |