Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.

GroupData Class

Represents a global class that combines a group policy ID and a list of service territory IDs. GroupData is a required input parameter for FSL.ScheduleJobsApi.getJob.setTerritory.

Namespace

FSL

Usage

GroupData is a required input parameter for FSL.ScheduleJobsApi.getJob.setTerritory. GroupData has two input parameters: groupPolicyId and a list of territoryIds.

Example

This sample code shows you how to populate GroupData.

1global class GroupData {
2        public String groupPolicyId { get; set; }
3        public List<String> territoryIds { get; set; }
4
5        global GroupData(String groupPolicyId, List<String> territoryIds) {
6            this.groupPolicyId = groupPolicyId;
7            this.territoryIds = territoryIds;
8        }
9    }

See FSL.ScheduleJobsApi.getJob.setTerritory to see how to use GroupData with setTerritory.

GroupData Properties

GroupData contains the following properties.

groupPolicyId

The group policy of a job required by FSL.ScheduleJobsApi.getJob.setTerritory.

Signature

public String groupPolicyId { get; set; }

Property Value

Type: String

territoryIds

A list of service territory IDs required by FSL.ScheduleJobsApi.getJob.setTerritory.

Signature

public List<String> territoryIds { get; set; }

Property Value

Type: String