Newer Version Available

This content describes an older version of this product. View Latest

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.

Usage

You need Compliance User permission set to use this method.

Example

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