<?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 Re: Create jobs per array item in ArcGIS Workflow Manager Questions</title>
    <link>https://community.esri.com/t5/arcgis-workflow-manager-questions/create-jobs-per-array-item/m-p/1323565#M1911</link>
    <description>&lt;P&gt;Unfortunately there is not a way to pass a schema in to the array and have the system process it for you, however that is a neat use case that I'll pass on to the rest of the team for consideration. You'll have to handle that preprocessing of the array yourself with either a Send Web Request step to &lt;A href="https://developers.arcgis.com/workflow-manager/api-reference/rest/update-job/" target="_self"&gt;update the job&lt;/A&gt;&amp;nbsp;or by updating each of those properties with the Update Job Properties step. You could also override the defaults through our other APIs such as &lt;A href="https://developers.arcgis.com/workflow-manager/api-reference/rest/create-jobs/" target="_self"&gt;REST&lt;/A&gt; and &lt;A href="https://developers.arcgis.com/python/api-reference/arcgis.gis.workflowmanager.html#jobmanager" target="_self"&gt;Python&amp;nbsp;&lt;/A&gt;when creating the jobs, but that would require more customization.&lt;/P&gt;</description>
    <pubDate>Tue, 29 Aug 2023 17:16:34 GMT</pubDate>
    <dc:creator>SamWest1</dc:creator>
    <dc:date>2023-08-29T17:16:34Z</dc:date>
    <item>
      <title>Create jobs per array item</title>
      <link>https://community.esri.com/t5/arcgis-workflow-manager-questions/create-jobs-per-array-item/m-p/1321479#M1895</link>
      <description>&lt;P&gt;Using ArcGIS Online Workflow Manager Advance,&amp;nbsp; I'm trying to schedule a job that sends a web request to a feature service to get all new records and then creates individual jobs for each new record using &lt;A href="https://doc.arcgis.com/en/arcgis-workflow-manager/latest/get-started/create-job.htm#ESRI_SECTION1_6252CCC62A404B0A9B949386DCC66734:~:text=Create%20job%20per%20array%20item" target="_self"&gt;create jobs per array&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Is there a way of passing the job properties in the array so that each job has some details in it rather than the template defaults?&lt;/P&gt;&lt;P&gt;Failing that is there a way to model a for-in-loop in the scheduled jobs so that I can create each job individually, set its property and then move to the next item in the array creating each job and setting its property one at a time?&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2023 01:52:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-workflow-manager-questions/create-jobs-per-array-item/m-p/1321479#M1895</guid>
      <dc:creator>Hector_Melendez</dc:creator>
      <dc:date>2023-08-23T01:52:54Z</dc:date>
    </item>
    <item>
      <title>Re: Create jobs per array item</title>
      <link>https://community.esri.com/t5/arcgis-workflow-manager-questions/create-jobs-per-array-item/m-p/1322317#M1896</link>
      <description>&lt;P&gt;Hi Hector, it is possible to pass an array of details for each job you wish to create. This could be an array of json objects or an array of arrays containing the details you wish to update. Your best bet will be to use Create Job per Array like you mentioned to create a job for each change, and then as preprocessing for each of those jobs, update the corresponding job or extended properties using &lt;A href="https://doc.arcgis.com/en/arcgis-workflow-manager/latest/get-started/workflow-functions.htm#ESRI_SECTION1_B4BF6C62DB6F47BAAFD01E4C96F93DEB" target="_blank" rel="noopener"&gt;Arcade expressions&lt;/A&gt; for the output values with the &lt;A href="https://doc.arcgis.com/en/arcgis-workflow-manager/latest/get-started/update-job-properties.htm" target="_blank" rel="noopener"&gt;Update Job Properties step.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;If you're using the &lt;A href="https://developers.arcgis.com/rest/services-reference/enterprise/extract-changes-feature-service-.htm" target="_blank" rel="noopener"&gt;Extract Changes endpoint&lt;/A&gt;, and there's anything you aren't able to include from that response, it may be worth querying the feature service as well in each job for those additional details based on the object ids with changes. If there's any information in the scheduled job that you wish to be accessible within the newly created jobs, you can also make use of the &lt;A href="https://doc.arcgis.com/en/arcgis-workflow-manager/latest/get-started/parent-child-relationships.htm" target="_blank" rel="noopener"&gt;parent-child relationship&lt;/A&gt; to &lt;A href="https://doc.arcgis.com/en/arcgis-workflow-manager/latest/get-started/job-property-functions.htm#ESRI_SECTION1_7EA1FC90A849453786FC23BC7EF21E6B" target="_blank" rel="noopener"&gt;pull that information&lt;/A&gt;. Hopefully this helps get you on track, but if you need further support be sure to let us know.&lt;/P&gt;&lt;P&gt;For anyone at 11.1 and using either a hosted feature service or non-versioned referenced feature service this process is a bit easier. We have introduced the ability to create jobs with feature service webhooks that should cover this use case without needing a scheduled web request. This blog helps outline how to get started with those:&amp;nbsp;&lt;A href="https://www.esri.com/arcgis-blog/products/workflow-manager/decision-support/using-the-feature-service-webhook-extract-changes-option-in-arcgis-workflow-manager/&amp;nbsp;" target="_blank" rel="noopener"&gt;Using the Feature Service Webhook Extract Changes Option in ArcGIS Workflow Manager&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Aug 2023 19:57:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-workflow-manager-questions/create-jobs-per-array-item/m-p/1322317#M1896</guid>
      <dc:creator>SamWest1</dc:creator>
      <dc:date>2023-08-24T19:57:37Z</dc:date>
    </item>
    <item>
      <title>Re: Create jobs per array item</title>
      <link>https://community.esri.com/t5/arcgis-workflow-manager-questions/create-jobs-per-array-item/m-p/1322349#M1897</link>
      <description>&lt;P&gt;I thought of using parent-child relationship in combination with Update Job Property but the problem that I encounter is that my schedule job creates many jobs but they all have the same default template properties. I'm not able to pass at least an ObjectID of the feature that the jobs is for so that I can query the feature properties to populate the job.&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/307416"&gt;@SamWest1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a json schema that I can pass to the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://doc.arcgis.com/en/arcgis-workflow-manager/latest/get-started/create-job.htm#ESRI_SECTION1_6252CCC62A404B0A9B949386DCC66734:~:text=Create%20job%20per%20array%20item" target="_self" rel="nofollow noopener noreferrer"&gt;create jobs per array&lt;/A&gt;&amp;nbsp;so that each job has a unique name or description (e.g. the feature objectID)? Then with that unique name or description, I can get the rest of the properties on each job.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Aug 2023 02:09:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-workflow-manager-questions/create-jobs-per-array-item/m-p/1322349#M1897</guid>
      <dc:creator>Hector_Melendez</dc:creator>
      <dc:date>2023-08-25T02:09:01Z</dc:date>
    </item>
    <item>
      <title>Re: Create jobs per array item</title>
      <link>https://community.esri.com/t5/arcgis-workflow-manager-questions/create-jobs-per-array-item/m-p/1323565#M1911</link>
      <description>&lt;P&gt;Unfortunately there is not a way to pass a schema in to the array and have the system process it for you, however that is a neat use case that I'll pass on to the rest of the team for consideration. You'll have to handle that preprocessing of the array yourself with either a Send Web Request step to &lt;A href="https://developers.arcgis.com/workflow-manager/api-reference/rest/update-job/" target="_self"&gt;update the job&lt;/A&gt;&amp;nbsp;or by updating each of those properties with the Update Job Properties step. You could also override the defaults through our other APIs such as &lt;A href="https://developers.arcgis.com/workflow-manager/api-reference/rest/create-jobs/" target="_self"&gt;REST&lt;/A&gt; and &lt;A href="https://developers.arcgis.com/python/api-reference/arcgis.gis.workflowmanager.html#jobmanager" target="_self"&gt;Python&amp;nbsp;&lt;/A&gt;when creating the jobs, but that would require more customization.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Aug 2023 17:16:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-workflow-manager-questions/create-jobs-per-array-item/m-p/1323565#M1911</guid>
      <dc:creator>SamWest1</dc:creator>
      <dc:date>2023-08-29T17:16:34Z</dc:date>
    </item>
  </channel>
</rss>

