You need to sign in to do that
Don't have an account?
Rizwan Ali 8
Create an Apex class with a method that returns an array (or list) of strings.
I got this error:
Line: 12, Column: 1
System.EmailException: SendEmail failed. First exception on row 0; first error: INVALID_ID_FIELD, ID is invalid or you do not have access to the record.: [toAddresses, Your email address]
Line: 12, Column: 1
System.EmailException: SendEmail failed. First exception on row 0; first error: INVALID_ID_FIELD, ID is invalid or you do not have access to the record.: [toAddresses, Your email address]
Greetings to you!
I believe you've forgotten to replace Your email address with your actual email address in the execute anonymous code. You need to replace "Your email address" with a valid email id.
For 'Create an Apex class with a method that returns an array (or list) of strings' challenge you can use below code.
I hope it helps you.
Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.
Thanks and Regards,
Khan Anas
All Answers
I have to type my Email Address instead of 'Your email address' in Execute Anonymous Window .
Greetings to you!
I believe you've forgotten to replace Your email address with your actual email address in the execute anonymous code. You need to replace "Your email address" with a valid email id.
For 'Create an Apex class with a method that returns an array (or list) of strings' challenge you can use below code.
I hope it helps you.
Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.
Thanks and Regards,
Khan Anas