getComplianceJobResults(jobId, pageSize, offset)

Get the compliance job results for a specific job.

API Version 

65.0

Requires Chatter 

No

Signature 

public static ConnectApi.ComplianceJobStatusRepresentation getComplianceJobResults(String jobId, Integer pageSize, Integer offset)

Parameters 

jobId

Type: String

ID of the compliance evaluation job to get the details for.

pageSize

Type: Integer

Number of results that are displayed per page.

offset

Type: Integer

Number of records that are skipped before returning results.

Return Value 

Type: ConnectApi.ComplianceJobStatusRepresentation

Usage 

You need Compliance User permission set to use this method.

Example 

1public class JobStatus {
2  public void getJobStatus() {
3    String jobId = '<JOB ID>';
4    Integer pageSize = 10;
5    Integer offset = 0;
6
7    // Call API
8    ConnectApi.ComplianceJobStatusRepresentation response =
9      ConnectApi.IndustriesCompliance.getComplianceJobResults(jobId, pageSize,
10      offset);
11    System.debug('Response**********' + response);
12  }
13}
14
15// Execute the method
16JobStatus jobStatus = new JobStatus();
17jobStatus.getJobStatus();