Closed tpcolson closed 8 years ago
Is this between portal to another portal?
Two AGOL accounts.
If it's the same site, you can just change the item's owner. If you need to copy the data, you can export the HFS data to a FGDB. Then you add that item back to account #2. You can then re-publish the FGDB and now you have a HFS copy.
You can use this to copy the HFS definition: https://github.com/Esri/ArcREST/blob/master/samples/copy_feature_service_deforgorg.py
Ya'll have been pretty helpful in answering questions about how to use ArcREST, so here's a tough one! I'm looking into the feasibility of using ArcREST to bulk copy Feature Services and Map Definitions including their Item Metadata from one organization account to another, where the two account are not linked in anyway. Some 3rd part tools have been suggested, but my experience with ArcREST in the past is that it will be cheapest, fastest, and best chance of working correctly. My question for you is, would https://github.com/Esri/ArcREST/blob/master/samples/copy_feature_service_def.py, albeit with some modification (to iterate) be the best option to copy the Feature Services between accounts?