Hi Community,
I'm running the clone_item() function to clone a webmap from one Portal to another.
This works great the first time.
If I make changes to the source webmap (i.e. Add a layer, change symbology) and then run the clone_items() again for that webmap, the target webmap is not updated.
I do not get any error, I just get empty results.
I understood that the search_existing_items option would reuse the existing item.
Thanks for any help.
Solved! Go to Solution.
@RobBlis the documentation is probably not as clear as it could be:
search_existing_items | Optional boolean. Indicating whether items that have already been cloned should be searched for in the GIS and reused rather than cloned again. |
"...reused rather than cloned again" means is that if a clone of an item already exists on the target system, then nothing will be done. In other words, it will not overwrite the existing clone. It is not comparing the contents of the item between the source and target, but only whether a cloned item already exists on the target that was generated from the source item.
@RobBlis the documentation is probably not as clear as it could be:
search_existing_items | Optional boolean. Indicating whether items that have already been cloned should be searched for in the GIS and reused rather than cloned again. |
"...reused rather than cloned again" means is that if a clone of an item already exists on the target system, then nothing will be done. In other words, it will not overwrite the existing clone. It is not comparing the contents of the item between the source and target, but only whether a cloned item already exists on the target that was generated from the source item.
Thanks for the clarification.