Clone Activity Plan And Territories Action
Clones Activity Plan records and associates them with specified territories.
This action is available in API version 67.0 and later.
URI: /services/data/vXX.X/actions/standard/cloneActvtyPlanTerritories
Where XX.X is the latest API version.
Formats: JSON, XML
HTTP Methods: POST
Authentication: Authorization: Bearer TOKEN
Where TOKEN is your OAuth access token.
| Input | Type | Description |
|---|---|---|
activityPlanToTerritories | List<Apex> | Required A collection of Apex crtActvtyPlan.ActivityPlanToTerritories records, where each pair contains a source Activity Plan ID and its associated territory IDs. |
timePeriodId | String | Required The ID of the time period to assign to each newly created Activity Plan record. |
activityPlanPrefix | String | Required The base name prefix for the new Activity Plan records. The territory name is appended to this prefix to form the final Activity Plan name. |
| Output | Type | Description |
|---|---|---|
clonedActivityPlanIds | List<String> | A list of IDs for the Activity Plan records created during the clone operation. |
Sample Request
Sample Response