We have a few Programs that we need to check to see if they are started/stopped. Is there a way to check these statuses via API?

My first attempt was using the AsyncActivityStatus object, but it seems this is only useful for Programs that have either already ran or are in the process of running.


You can use AsynchApexJob object to query status. You may find this article useful in your case.

You can use SOQL like -

Select TotalJobItems, Status, NumberOfErrors, MethodName, JobType, 
JobItemsProcessed, Id, CreatedDate, CreatedById, CompletedDate, ApexClassId, 
ApexClass.Name From AsyncApexJob

You can find all available field in AsyncApexJob in this documentation.

  • I can't find any documentation on this. Can you provide a link to any? – Samsquanch May 6 '15 at 19:14
  • I have updated my answer with URL. You can check this documentation for alll available fields for query. – Jitendra Zaa May 6 '15 at 19:17
  • I'm some code from ExactTarget, and this object doesn't seem available. Is this only available on the Salesforce side? – Samsquanch May 6 '15 at 19:20
  • My Bad, I didnt knew that you are trying it in ExactTarget. My solution is for Salesforce. – Jitendra Zaa May 6 '15 at 19:22
  • I actually was unaware that there was a Marketing Cloud in both Exact Target and Salesforce until now. Thanks for the help though. – Samsquanch May 6 '15 at 19:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.