-
Notifications
You must be signed in to change notification settings - Fork 7
Home
- Hosted Web Applications (Web AppBuilder or Configurable App Template)
- Web Maps
- Hosted Feature Layers
- Hosted Feature Layer Views
- Feature Collections
- Survey123 Forms
- Workforce Projects
- Story Maps
- References to web maps and applications will not be cloned. The new story map will continue to point to the original maps and applications.
- Simple Types
- Items types with a download, for example zip files, packages, add-ins, documents, etc.
This script only supports cloning hosted feature layers and feature collections. If other services are referenced in the web map they will not be cloned and the new web map will retain its reference to the original service. Data can optionally be copied with the hosted feature layers and feature collections.
To clone hosted feature layers to an ArcGIS Enterprise organization the Portal's managed server must be configured with the ArcGIS Datastore.
When cloning items from ArcGIS Online to ArcGIS Enterprise you need to consider whether the version of ArcGIS Enterprise supports the item and all the capabilities of that item. If the item type is not supported on the version of Portal the script will fail. In addition, if the web map or application is using a capability not available on that version of Portal the map or application may not function properly.
The clone items tool can be run within ArcGIS Pro to clone the specified items to the active portal in ArcGIS Pro. You can set the active portal from the upper-right corner of the application or from the Pro backstage.
-
Source Organization - The URL to the source ArcGIS Online or Enterprise organization containing the items to clone.
-
Username - The username for the source ArcGIS Online or Enterprise organization. If left blank you will connect anonymously.
-
Password - The password for the source ArcGIS Online or Enterprise organization. If left blank you will connect anonymously.
-
Items - The id of the item from the source organization that you want to clone to the active portal. You can provide one or more item ids. The id can be found in the URL of the item. It is the 32 digit alphanumeric number at the end of the URL, for example '545690c91a2445c4b3f11180b2c1cf44'.
-
Output Folder - The folder in your user content to write the items. If a folder by the name doesn't already exist a new folder will be created. If left blank the items will be created at the root folder in your user content.
-
Copy Data - When enabled the data for any features services or feature collections will be copied to the new items when cloned.
-
Use Existing Items in Organization - When an item is cloned a type keyword is written to the new item associating it with the original item. When enabled the tool will search the org to see if the item has already been cloned, and if so use it instead of cloning a duplicate. This is common if you have multiple web maps that share the same service. Rather than creating the service again it will find the already cloned version. If multiple versions of the item have been cloned to the org, the most recently created item will be used.
-
Use Organization's Default Basemap - When enabled any web maps that are created will use the organization's default basemap.
-
Add GPS Metadata Fields - When enabled GPS metadata fields will be added to new point feature layers so Collector for ArcGIS can write GPS metadata to the respective fields when editing point features.
-
Output Coordinate System - Optionally specify the output spatial coordinate system of any new hosted feature layers. If not provided the feature layer will have the same spatial reference as the original layer.
-
Extent - Optionally specify the output extent of items created during cloning. If not specified the item will have the same extent as the original item.