调用Queueable Apex,并查看Job信息。 代码语言:javascript 代码运行次数:0 运行 AI代码解释 IDjobID=System.enqueueJob(newAsyncExecutionExample());AsyncApexJob jobInfo=[SELECTStatus,NumberOfErrorsFROMAsyncApexJobWHEREId=:jobID];system.debug('>>>AsyncApexJob>>>'+jobInfo); Queueable Apex Limits 1.在...
apex limits. this example adds a job for delayed asynchronous execution by passing in an instance of your class implementation of the queueable interface for execution. there’s a minimum delay of 5 minutes before the job is executed. integer delayinminutes = 5; id jobid = system.enqueuejob...
ID jobID = System.enqueueJob(new AsyncExecutionExample()); 之后便可通过AsyncApexJob监控此Job AsyncApexJob jobInfo = [SELECT Status,NumberOfErrors FROM AsyncApexJob WHERE Id=:jobID]; Chaining Jobs public class AsyncExecutionExample implements Queueable { public void execute(QueueableContext context...
para identificar su trabajo y monitorear el progreso, ya sea mediante la interfaz de usuario de Salesforce en la página Trabajos de Apex o mediante programación con una consulta al registro desde AsyncApexJob. Encadenamiento de trabajos: Puede encadenar un trabajo con otro trabajo media...
Take control of your asynchronous Apex processes by using the Queueable interface. This interface enables you to add jobs to the queue and monitor them, which is an enhanced way of running your asynchronous Apex code compared to using future metho
Queueable Apex例: public with sharing class AsyncExecutionExample implements Queueable{ public void...555-1212'); insert accItem; system.debu...
Salesforce Developer Website
when you submit your job by invoking the system.enqueuejob method, the method returns the id of the new job. this id corresponds to the id of the asyncapexjob record. use this id to identify your job and monitor its progress, either through the salesforce user interface in the apex ...
Salesforce Developer Website
我们使用 Cookies使您与我们网站的交互更有意义,并为您定制内容。 我们根据隐私声明处理从Cookies收集的信息。 这些信息可能被传输到中国境外的服务器或第三方信息控制者进行处理。 要更改您的 Cookies设置和偏好,请单击“Cookie同意管理”按钮。 拒绝所有 接受所有Cookie同意管理 ...