Solved: Can you use clone_items to move items from one por...

文章推薦指數: 80 %
投票人數:10人

You can use the Python API to deep clone items and their dependencies using "clone_items" like the following: source_gis = arcgis.gis. Community AllCommunities Products ArcGISSurvey123 ArcGISPro ArcGISOnline ArcGISEnterprise DataManagement Geoprocessing ArcGISWebAppBuilder ArcGISCollector ArcGISCityEngine ArcGISDashboards ArcGISSpatialAnalyst AllProductsCommunities Industries Education WaterResources GasandPipeline State&LocalGovernment Transportation WaterUtilities Telecommunications RoadsandHighways NaturalResources Electric PublicSafety AllIndustriesCommunities Developers Python ArcGISAPIforJavaScript ArcGISRuntimeSDKs ArcGISAPIforPython ArcObjectsSDK ArcGISProSDK Developers-General ArcGISAPIforSilverlight(Retired) ArcGISAPIforFlex(Retired) ArcGISRESTAPI ArcGISforWindowsMobile(Retired) AllDevelopersCommunities Worldwide ComunidadEsriColombia-Ecuador-Panamá ArcGIS開発者コミュニティ CzechGIS ArcNesia EsriIndia GeoDevGermany EsriItaliaCommunity ArcGISContent-EsriNederland SwissGeoCommunity GeoDevSwitzerland ComunidadGEOTEC AllWorldwideCommunities AllCommunities Products Developers UserGroups Industries Services Worldwide CommunityBasics Events Learning ArcGISTopics Networks ViewAllCommunities ArcGISIdeas CommunityBasics CommunityHelpDocuments CommunityBlog CommunityFeedback MemberIntroductions CommunityIdeas SignIn cancel Turnonsuggestions Auto-suggesthelpsyouquicklynarrowdownyoursearchresultsbysuggestingpossiblematchesasyoutype. Showingresultsfor  Show  only  | Searchinsteadfor  Didyoumean:  Cancel Home : AllCommunities : Developers : ArcGISAPIforPython : ArcGISAPIforPythonQuestions : Canyouuseclone_itemstomoveitemsfromonepor... Options SubscribetoRSSFeed MarkTopicasNew MarkTopicasRead FloatthisTopicforCurrentUser Bookmark Subscribe Mute PrinterFriendlyPage Canyouuseclone_itemstomoveitemsfromoneportaltoanother? Subscribe 2825 2 Jumptosolution04-09-201803:21PM by JamesGustine NewContributorIII ‎04-09-2018 03:21PM MarkasNew Bookmark Subscribe Mute SubscribetoRSSFeed Permalink Print EmailtoaFriend ReportInappropriateContent Willthisworkformovingitemsfromoneportaltoanother?  arcgis.gismodule—arcgis1.4.0documentation Ifnot,isthereacopy_itemswithasourceandtarget?Thanks! Solved! GotoSolution. Reply 0 Kudos AllPosts PreviousTopic NextTopic 1Solution AcceptedSolutions by AaronPulver EsriRegularContributor ‎04-09-2018 04:32PM MarkasNew Bookmark Subscribe Mute SubscribetoRSSFeed Permalink Print EmailtoaFriend ReportInappropriateContent Theago-clone-itemsrepoisdeprecatedsincethefunctionalitywasmovedintothePythonAPI.Youcanusethe Python APItodeepcloneitemsandtheirdependenciesusing"clone_items"likethefollowing:source_gis=arcgis.gis.GIS("https://arcgis.com","username","password")target_gis=arcgis.gis.GIS("https://server.com/portal","username","password")item=source_gis.content.get("")target_gis.content.clone_items([item]) Viewsolutioninoriginalpost Reply 2 Kudos 2Replies by DerekLaw EsriCommunityModerator ‎04-09-2018 03:31PM MarkasNew Bookmark Subscribe Mute SubscribetoRSSFeed Permalink Print EmailtoaFriend ReportInappropriateContent HiJames,Pleasereviewthisthread,CopycontentbetweenPortalAandAGOL Andthesample,GitHub-Esri/ago-clone-items:ToolsusedtocloneitemsbetweenArcGISOnlineandArcGISEnterprise... Hopethishelps, Reply 0 Kudos by AaronPulver EsriRegularContributor ‎04-09-2018 04:32PM MarkasNew Bookmark Subscribe Mute SubscribetoRSSFeed Permalink Print EmailtoaFriend ReportInappropriateContent Theago-clone-itemsrepoisdeprecatedsincethefunctionalitywasmovedintothePythonAPI.Youcanusethe Python APItodeepcloneitemsandtheirdependenciesusing"clone_items"likethefollowing:source_gis=arcgis.gis.GIS("https://arcgis.com","username","password")target_gis=arcgis.gis.GIS("https://server.com/portal","username","password")item=source_gis.content.get("")target_gis.content.clone_items([item]) Reply 2 Kudos PostReply TermsofUse CommunityGuidelines CommunityBasics Privacy TrustCenter Legal ContactEsri



請為這篇文章評分?