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.

InputTypeDescription
activityPlanToTerritoriesList<Apex>Required
A collection of Apex crtActvtyPlan.ActivityPlanToTerritories records, where each pair contains a source Activity Plan ID and its associated territory IDs.
timePeriodIdStringRequired
The ID of the time period to assign to each newly created Activity Plan record.
activityPlanPrefixStringRequired
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.
OutputTypeDescription
clonedActivityPlanIdsList<String>A list of IDs for the Activity Plan records created during the clone operation.

Sample Request

Sample Response