<?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: Compare Webmap Layer to WorkForce Assignment Layer in ArcGIS Workforce Questions</title>
    <link>https://community.esri.com/t5/arcgis-workforce-questions/compare-webmap-layer-to-workforce-assignment-layer/m-p/768933#M223</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you mind sharing any links that can show me how to query the REST API and how I'd go about deploying Python scripts to work with the environment? Sorry, this is all relatively new to me but I can already foresee the usefulness of using scripting to automate a number of processes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Jan 2020 18:33:25 GMT</pubDate>
    <dc:creator>KristinVernon</dc:creator>
    <dc:date>2020-01-23T18:33:25Z</dc:date>
    <item>
      <title>Compare Webmap Layer to WorkForce Assignment Layer</title>
      <link>https://community.esri.com/t5/arcgis-workforce-questions/compare-webmap-layer-to-workforce-assignment-layer/m-p/768927#M217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Howdy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Following the "&lt;A href="https://community.esri.com/thread/217644"&gt;Automatically generating assignments in Workforce&lt;/A&gt;&amp;nbsp;" I was able to get a script working for automating workforce Assignment generation. I would like to add a condition to this to first check for any existing assignments before generating a new one. To do this I would like to compare the ID number(leaknumber) in my webmap layer to the workOrderId in the assignments layer. If the webmap id number does not exist in the workOrderId field then I would like for it to generate a assignment.&lt;/P&gt;&lt;P&gt;Below is the existing input for generating assignments&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/460243_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;I am fairly new to arcgis api for python and am not sure the best way to go about this. Some blogs state to compare layers, I should first join them and then look for differences. I have also @seen others that create a loop within a loop to first check if feature service 1 == feature service 2.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the most efficient way to add this condition in?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Sep 2019 13:32:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-workforce-questions/compare-webmap-layer-to-workforce-assignment-layer/m-p/768927#M217</guid>
      <dc:creator>RobbieEisenrich</dc:creator>
      <dc:date>2019-09-24T13:32:10Z</dc:date>
    </item>
    <item>
      <title>Re: Compare Webmap Layer to WorkForce Assignment Layer</title>
      <link>https://community.esri.com/t5/arcgis-workforce-questions/compare-webmap-layer-to-workforce-assignment-layer/m-p/768928#M218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you ever figure this out? Currently I'm trying to create a join for an assignment layer in workforce with a Survey123 layer that references my geodatabase. I'm comparing the WorkOrder ID field with a Job Number field in my database and it appears that the join cannot read them as the same thing even though they are the same value and data type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jan 2020 22:34:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-workforce-questions/compare-webmap-layer-to-workforce-assignment-layer/m-p/768928#M218</guid>
      <dc:creator>KristinVernon</dc:creator>
      <dc:date>2020-01-22T22:34:13Z</dc:date>
    </item>
    <item>
      <title>Re: Compare Webmap Layer to WorkForce Assignment Layer</title>
      <link>https://community.esri.com/t5/arcgis-workforce-questions/compare-webmap-layer-to-workforce-assignment-layer/m-p/768929#M219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Regarding the OP,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Probably the most efficient way to do this would be to query the assignments layer prior to creating the assignment with a query like "workOrderId = '&amp;lt;your work order id&amp;gt;'. If that returns no features, then you know that assignment hasn't been created yet. If you have a lot of new work orders, it could be faster to query all of the assignments and then iterate over them in Python and check for matching work order ids.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jan 2020 13:04:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-workforce-questions/compare-webmap-layer-to-workforce-assignment-layer/m-p/768929#M219</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2020-01-23T13:04:44Z</dc:date>
    </item>
    <item>
      <title>Re: Compare Webmap Layer to WorkForce Assignment Layer</title>
      <link>https://community.esri.com/t5/arcgis-workforce-questions/compare-webmap-layer-to-workforce-assignment-layer/m-p/768930#M220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How are you trying to create the joined layer? When you say "layer references my geodatabase" do you mean it's an enterprise geodatabase hosting data through ArcGIS server?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jan 2020 13:06:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-workforce-questions/compare-webmap-layer-to-workforce-assignment-layer/m-p/768930#M220</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2020-01-23T13:06:44Z</dc:date>
    </item>
    <item>
      <title>Re: Compare Webmap Layer to WorkForce Assignment Layer</title>
      <link>https://community.esri.com/t5/arcgis-workforce-questions/compare-webmap-layer-to-workforce-assignment-layer/m-p/768931#M221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How would you go about querying the hosted assignment layer? I wanted to create a query layer however the assignment layer is hosted on my portal and the layer I want to compare it with is in my geodatabase (to answer your second question, yes it is a SQL Server Database and its feature service is hosted through the ArcGIS server).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was trying to find a way to bring my assignment layer from workforce into my geodatabase but I can't seem to find a way to do so.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jan 2020 14:47:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-workforce-questions/compare-webmap-layer-to-workforce-assignment-layer/m-p/768931#M221</guid>
      <dc:creator>KristinVernon</dc:creator>
      <dc:date>2020-01-23T14:47:37Z</dc:date>
    </item>
    <item>
      <title>Re: Compare Webmap Layer to WorkForce Assignment Layer</title>
      <link>https://community.esri.com/t5/arcgis-workforce-questions/compare-webmap-layer-to-workforce-assignment-layer/m-p/768932#M222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You'd have to query the assignments layer via the feature service layer Rest API since it's a hosted service. You won't be able to create a query layer since the data is coming from two different sources (hosted feature service, sql server table).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could write a Python script to query the assignments from the assignments layer and then insert the results into your SQL server tables directly or via it's associated feature service.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jan 2020 17:37:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-workforce-questions/compare-webmap-layer-to-workforce-assignment-layer/m-p/768932#M222</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2020-01-23T17:37:03Z</dc:date>
    </item>
    <item>
      <title>Re: Compare Webmap Layer to WorkForce Assignment Layer</title>
      <link>https://community.esri.com/t5/arcgis-workforce-questions/compare-webmap-layer-to-workforce-assignment-layer/m-p/768933#M223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you mind sharing any links that can show me how to query the REST API and how I'd go about deploying Python scripts to work with the environment? Sorry, this is all relatively new to me but I can already foresee the usefulness of using scripting to automate a number of processes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jan 2020 18:33:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-workforce-questions/compare-webmap-layer-to-workforce-assignment-layer/m-p/768933#M223</guid>
      <dc:creator>KristinVernon</dc:creator>
      <dc:date>2020-01-23T18:33:25Z</dc:date>
    </item>
    <item>
      <title>Re: Compare Webmap Layer to WorkForce Assignment Layer</title>
      <link>https://community.esri.com/t5/arcgis-workforce-questions/compare-webmap-layer-to-workforce-assignment-layer/m-p/768934#M224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The Workforce team provides some example Python scripts here:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://github.com/Esri/workforce-scripts" title="https://github.com/Esri/workforce-scripts"&gt;GitHub - Esri/workforce-scripts: A set of scripts to help administer Workforce projects.&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can read more about ArcGIS API for Python here:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/python/guide/" title="https://developers.arcgis.com/python/guide/"&gt;Guide | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jan 2020 19:05:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-workforce-questions/compare-webmap-layer-to-workforce-assignment-layer/m-p/768934#M224</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2020-01-23T19:05:32Z</dc:date>
    </item>
  </channel>
</rss>

