<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Scheduling a Model with Python When Feature Services are in ArcGIS Online in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/scheduling-a-model-with-python-when-feature/m-p/748045#M57837</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a model that updates my symbology on a daily basis to make it easier for techs on the field find their sampling sites. Currently, I am running the model manually but I would like to schedule it to run while we are away from the office at night. I found &lt;A href="https://pro.arcgis.com/en/pro-app/help/analysis/geoprocessing/modelbuilder/scheduling-a-model-run.htm"&gt;this page&lt;/A&gt; covers most of the process but the example provided seems to reference input and out put folders stored locally on a PC. It has the following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;&lt;SPAN class=""&gt;import&lt;/SPAN&gt; arcpy arcpy.ImportToolbox(&lt;SPAN class=""&gt;r"C:\path\myToolbox.tbx"&lt;/SPAN&gt;, &lt;SPAN class=""&gt;"tbxAlias"&lt;/SPAN&gt;) arcpy.myModel_tbxAlias(&lt;SPAN class=""&gt;r"c:\pathToInput\inputFolder"&lt;/SPAN&gt;, &lt;SPAN class=""&gt;r"C:\pathToGdb\output.gdb"&lt;/SPAN&gt;)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm confused about the input folder and out put folder arguments. I built the model in ArcGIS Pro but the feature services are in my office's ArcGIS Online portal. Do I need to reference the project folder where the model is saved or do I need to somehow reference the ArcGIS Online feature services that the model will be updating? If the latter, how do I reference ArcGIS Online feature services. Do I use the REST API?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for any help you can offer. I have learned so much on this forum and though I have no formal GIS training I have been able to solve a lot of problems with your help. Unfortunately, I'm not very familiar with Python yet.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Jun 2019 17:56:02 GMT</pubDate>
    <dc:creator>ChristopherMatechik</dc:creator>
    <dc:date>2019-06-27T17:56:02Z</dc:date>
    <item>
      <title>Scheduling a Model with Python When Feature Services are in ArcGIS Online</title>
      <link>https://community.esri.com/t5/python-questions/scheduling-a-model-with-python-when-feature/m-p/748045#M57837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a model that updates my symbology on a daily basis to make it easier for techs on the field find their sampling sites. Currently, I am running the model manually but I would like to schedule it to run while we are away from the office at night. I found &lt;A href="https://pro.arcgis.com/en/pro-app/help/analysis/geoprocessing/modelbuilder/scheduling-a-model-run.htm"&gt;this page&lt;/A&gt; covers most of the process but the example provided seems to reference input and out put folders stored locally on a PC. It has the following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;&lt;SPAN class=""&gt;import&lt;/SPAN&gt; arcpy arcpy.ImportToolbox(&lt;SPAN class=""&gt;r"C:\path\myToolbox.tbx"&lt;/SPAN&gt;, &lt;SPAN class=""&gt;"tbxAlias"&lt;/SPAN&gt;) arcpy.myModel_tbxAlias(&lt;SPAN class=""&gt;r"c:\pathToInput\inputFolder"&lt;/SPAN&gt;, &lt;SPAN class=""&gt;r"C:\pathToGdb\output.gdb"&lt;/SPAN&gt;)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm confused about the input folder and out put folder arguments. I built the model in ArcGIS Pro but the feature services are in my office's ArcGIS Online portal. Do I need to reference the project folder where the model is saved or do I need to somehow reference the ArcGIS Online feature services that the model will be updating? If the latter, how do I reference ArcGIS Online feature services. Do I use the REST API?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for any help you can offer. I have learned so much on this forum and though I have no formal GIS training I have been able to solve a lot of problems with your help. Unfortunately, I'm not very familiar with Python yet.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jun 2019 17:56:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/scheduling-a-model-with-python-when-feature/m-p/748045#M57837</guid>
      <dc:creator>ChristopherMatechik</dc:creator>
      <dc:date>2019-06-27T17:56:02Z</dc:date>
    </item>
  </channel>
</rss>

