<?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: Workforce - adding details to ID and Notes fields from Feature Class in ArcGIS Workforce Questions</title>
    <link>https://community.esri.com/t5/arcgis-workforce-questions/workforce-adding-details-to-id-and-notes-fields/m-p/1113043#M2210</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/527061"&gt;@NRARAdmin&lt;/a&gt; this is definitely possible. We have a sample &lt;A href="https://github.com/Esri/workforce-scripts/blob/master/notebooks/examples/2%20-%20Importing%20Assignments.ipynb" target="_self"&gt;notebook&lt;/A&gt; which includes a section on creating assignments from feature layers.&lt;/P&gt;&lt;P&gt;You'll just need to modify this section to set the values you'd like:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;crosswalk_assignments = []
for _, row in crosswalks_df.iterrows():
    crosswalk_assignments.append(
        workforce.Assignment(
            project,
            geometry=row["SHAPE"],
            location=row["location"],
            description=row["description"],
            priority=int(row["priority"]),
            assignment_type="Paint Crosswalk",
            status="unassigned"
        )
    )&lt;/LI-CODE&gt;&lt;P&gt;You can find documentation about the Assignment class &lt;A href="https://developers.arcgis.com/python/api-reference/arcgis.apps.workforce.html#assignment" target="_self"&gt;here&lt;/A&gt;.&lt;/P&gt;</description>
    <pubDate>Mon, 01 Nov 2021 23:18:55 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2021-11-01T23:18:55Z</dc:date>
    <item>
      <title>Workforce - adding details to ID and Notes fields from Feature Class</title>
      <link>https://community.esri.com/t5/arcgis-workforce-questions/workforce-adding-details-to-id-and-notes-fields/m-p/1110627#M2203</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have a workforce project, where dispatchers create assignments from a feature class within the dispatcher map. We have configured this using the pop-up so the location field is populated with relevant location info, but we'd like to populate the ID and Note Fields from other attributes in this same feature class.&lt;/P&gt;&lt;P&gt;I believe that this is possible using a python Notebook, but haven't been able to find any details or examples of this being done. Is this possible and does anyone have any example scripts?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 25 Oct 2021 00:31:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-workforce-questions/workforce-adding-details-to-id-and-notes-fields/m-p/1110627#M2203</guid>
      <dc:creator>NRARAdmin</dc:creator>
      <dc:date>2021-10-25T00:31:50Z</dc:date>
    </item>
    <item>
      <title>Re: Workforce - adding details to ID and Notes fields from Feature Class</title>
      <link>https://community.esri.com/t5/arcgis-workforce-questions/workforce-adding-details-to-id-and-notes-fields/m-p/1113043#M2210</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/527061"&gt;@NRARAdmin&lt;/a&gt; this is definitely possible. We have a sample &lt;A href="https://github.com/Esri/workforce-scripts/blob/master/notebooks/examples/2%20-%20Importing%20Assignments.ipynb" target="_self"&gt;notebook&lt;/A&gt; which includes a section on creating assignments from feature layers.&lt;/P&gt;&lt;P&gt;You'll just need to modify this section to set the values you'd like:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;crosswalk_assignments = []
for _, row in crosswalks_df.iterrows():
    crosswalk_assignments.append(
        workforce.Assignment(
            project,
            geometry=row["SHAPE"],
            location=row["location"],
            description=row["description"],
            priority=int(row["priority"]),
            assignment_type="Paint Crosswalk",
            status="unassigned"
        )
    )&lt;/LI-CODE&gt;&lt;P&gt;You can find documentation about the Assignment class &lt;A href="https://developers.arcgis.com/python/api-reference/arcgis.apps.workforce.html#assignment" target="_self"&gt;here&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Nov 2021 23:18:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-workforce-questions/workforce-adding-details-to-id-and-notes-fields/m-p/1113043#M2210</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-11-01T23:18:55Z</dc:date>
    </item>
  </channel>
</rss>

