Switch from the Entities client to the Jobs client
With the introduction of a Jobs client, you need to replace the use of the EntitiesClient and the QueryingClient with the JobClient when working with M.Target and M.JobDescription entities.
To help you update your code to take advantage of the Jobs client, we provide more detailed examples.
The following examples illustrate how to replace the use of the EntitiesClient and the QueryingClient with the JobClient when using the Scripting SDK to work with M.Target and M.JobDescription entities.
Fetch a Job description
Here is an example that retrieves a job description using the Entities client.
To use the Jobs client, update the code as follows:
Save a job description
Here is an example that uses the Entities client.
To use the Jobs client, update the code as follows:
Delete a job description
Here is an example that uses the Entities client.
To use the Jobs client, update the code as follows:
Fetch a job target
Here is an example that uses the Entities client.
To use the Jobs client, update the code as follows:
Save a job target
Here is an example that uses the Entities client.
To use the Jobs client, update the code as follows:
Delete a job target
Here is an example that uses the Entities client.
To use the Jobs client, update the code as follows: