0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

スケジュールされたJobの詳細を検索する

Last updated at Posted at 2023-07-05

まとめページに戻る
まとめN~Z

スケジュール済みジョブでは申請済み/開始/次の実行スケジュール/種別しか分かりません

Jobの詳細は別のオブジェクトみたいです。

SELECT Id, NextFireTime , CronJobDetail.JobType FROM CronTrigger 

CronJobDetail.JobTypeの1がデータエクスポートのようです。

1—Data Export

CronJobDetail

弊社の環境ではレポートがたくさん登録されていました。

SELECT Id, CronJobDetail.Name, NextFireTime, OwnerId, CronJobDetail.JobType FROM CronTrigger WHERE OwnerId = 'XXXXXXXXXXXXXXXXXX'

スケジュールされているジョブを削除して、実行したいユーザで再度スケジュールを設定する手順みたいです。

I would do it in two steps:

  1. Delete current schedule process: Setup -> Scheduled Jobs -> Search your scheduled job and delete it

  2. Create scheduled job again: Log in as the user who will execute the process -> Setup -> Apex Classes -> Click on 'Schedule Apex' -> set previous values.

https://developer.salesforce.com/forums/?id=9060G0000005fUmQAI

CronTriggerオブジェクトを検索して表示できるようです。

CronJobDetail.JobTypeは3が— ダッシュボードの更新ですね。

https://developer.salesforce.com/docs/atlas.ja-jp.object_reference.meta/object_reference/sforce_api_objects_cronjobdetail.htm

SELECT EndTime, CronJobDetailId, CronJobDetail.Name FROM CronTrigger WHERE CronJobDetail.JobType = '3'

https://salesforce.stackexchange.com/questions/202241/how-to-get-the-end-date-of-a-scheduled-job-which-was-scheduled-via-system-schedu

開発者コンソールのクエリエディターを使うとSOQLを実行できます。

開発者コンソールのクエリエディター
https://help.salesforce.com/s/articleView?id=sf.code_dev_console_tab_query_editor.htm&type=5

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?