You need to sign in to do that
Don't have an account?
dho1
Calling an Email Service from Apex
Hi,
I've developed APEX code to call an email service, which in turn calls a batch APEX job. This works if I manually forward the email created by the APEX code to the service address. However I cannot see the batch job on the apex scheduler when the APEX code sends the email directly to the service address.
I've tried messing around with the service address by adding my domain and removing it, and neither case worked. I've also tried turning on and off the advanced security settings.
Any ideas?
Figured it out. Apparently I have a custom settings that stored the service email address, in which the type was set to Email, and couldn't handle the length of the services address. When I changed it to Text(255) things worked beautifully.
All Answers
Hi Jia, The target class implements Database.Batchable.
Figured it out. Apparently I have a custom settings that stored the service email address, in which the type was set to Email, and couldn't handle the length of the services address. When I changed it to Text(255) things worked beautifully.