Examples
To help you update your code to take advantage of the new Jobs client, here are some examples.
Loop through import jobs and load job description
Here is an example that uses the Entities client to loop through all Import jobs, and load the job descriptions:
To use the Jobs client, update the code as follows:
Load a job and its targets
Here is an example that uses the Entities client to load a job and its targets:
To use the Jobs client, update the code as follows:
Query the targets with the condition Failure for a specific job
Here is an example that uses the Entities client to query targets with the condition Failure where the job has a specific job ID.
To use the Jobs client, update the code as follows:
Create a description for a job
Here is an example that uses the Entities client to create a description for a job.
To use the Jobs client, update the code as follows:
Create a job target
Here is an example that uses the Entities client to create a job target.
To use the Jobs client, update the code as follows: