Apex

Apex batchable finish method send single email message

Send single email message notification to job submitter after finish a batch job:

 

Apex

Apex Schedule Job every x minutes, e.g. every 5 minutes

In some rare cases, you need to schedule Apex jobs in minutes, here is an example to schedule an Apex job in every 5 minutes, change YourCustomScheduleClass to your custom schedule class name, then run following code in Anonymous Execution.

 

Apex

com.sforce.ws.SoapFaultException: Unable to find a deserializer for the type common.api.soap.wsdl.QueryResult Error Id: 883671539-69937 (-428048666)

com.sforce.ws.SoapFaultException: Unable to find a deserializer for the type common.api.soap.wsdl.QueryResult Error Id: 883671539-69937 (-428048666) Resolve: Check the Query String

Notice the sub-query (SELECT Id FROM Contacts), the result of the above query has nested contact objects information. Now start to use the account query result by casting it to Read more…