ActivityPlanToTerritories(activityPlanId, territoryIds)

Creates an instance of the ActivityPlanToTerritories class to pair a source activity plan with territory IDs.

API Version 

65.0

Requires Chatter 

No

Signature 

public ActivityPlanToTerritories(String activityPlanId, List<String> territoryIds)

Parameters 

activityPlanId

Type: String

ID of the source activity plan to associate with the specified territories.

territoryIds

Type: List<String>

IDs of the territories to assign to the cloned activity plan.

Return Value 

Type: ActivityPlanToTerritories