Salesforce

Retrieve a scheduled job

« Go Back
Information
Retrieve a scheduled job
000004361
Public
Product Selection
aiWare - aiWare
Article Details

Before making changes to an existing scheduled job, you can retrieve pertinent details about it by using theĀ scheduledJob query, as in the following example.

query scheduledJob($scheduleJobId:ID!) {
  scheduledJob(id:$scheduleJobId){
      id
      createdDateTime
      description
      isActive
      startDateTime
      stopDateTime
      primarySource {
        id
        name
        createdDateTime
      }
      organizationId
           jobTemplates{
        records{
          id
          taskTemplates{
            records{
              id
              engine{name id}
              payload
            }
          }
        }
      }
     jobs(limit:100){
      count
      records{
        templateId
        template{
          id
                }
        createdBy
        createdDateTime
        id
        tasks{
          records{id status createdDateTime engine{id name} log{uri}}
        }
      }
    } 
  }
}

What to do next

To make changes to a scheduled job, see Update a scheduled job.

Additional Technical Documentation Information
Properties
11/21/2023 11:42 PM
12/4/2023 6:34 PM
12/4/2023 6:34 PM
Documentation
Documentation
000004361
Translation Information
English

Powered by