<?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: Table to Domain with Filter in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/table-to-domain-with-filter/m-p/626547#M20794</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would use the &lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#//00170000006v000000"&gt;Make Table View&lt;/A&gt; tool with an expression to select your users into groups - then use the Table to Domain tool to create the domains.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Apr 2015 21:19:39 GMT</pubDate>
    <dc:creator>OwenEarley</dc:creator>
    <dc:date>2015-04-16T21:19:39Z</dc:date>
    <item>
      <title>Table to Domain with Filter</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/table-to-domain-with-filter/m-p/626546#M20793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a table with a list of employees that I would like to split into three separate domains based on their job description which are listed in the table.&amp;nbsp; Is there a way (probably with python) to automate the creation of those domains so that I could use the Table to Domain tool, but with only the appropriate subset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Right now, I'm using the Create Domain and AddCodedValueToDomain to do this manually for each person.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Apr 2015 17:13:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/table-to-domain-with-filter/m-p/626546#M20793</guid>
      <dc:creator>ToddHenry1</dc:creator>
      <dc:date>2015-04-16T17:13:58Z</dc:date>
    </item>
    <item>
      <title>Re: Table to Domain with Filter</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/table-to-domain-with-filter/m-p/626547#M20794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would use the &lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#//00170000006v000000"&gt;Make Table View&lt;/A&gt; tool with an expression to select your users into groups - then use the Table to Domain tool to create the domains.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Apr 2015 21:19:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/table-to-domain-with-filter/m-p/626547#M20794</guid>
      <dc:creator>OwenEarley</dc:creator>
      <dc:date>2015-04-16T21:19:39Z</dc:date>
    </item>
    <item>
      <title>Re: Table to Domain with Filter</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/table-to-domain-with-filter/m-p/626548#M20795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Something like this should work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import arcpy

# script parameters: 
userTable = r"G:/Temp/GeoNet/TableToDomain/Users.gdb/Users"
domainTargetGdb = r"G:/Temp/GeoNet/TableToDomain/Users.gdb"

# Create Admins Domain
admins = arcpy.MakeTableView_management(userTable,"Admins",""""GroupName" = 'Editor'""")
arcpy.TableToDomain_management("Admins","Username","Username",domainTargetGdb,"Admins","Admin Users","REPLACE")

# Create Editors Domain
editors = arcpy.MakeTableView_management(userTable,"Editors",""""GroupName" = 'Editor'""")
arcpy.TableToDomain_management("Editors","Username","Username",domainTargetGdb,"Editors","Editor Users","REPLACE")

# Create Viewers Domain
viewers = arcpy.MakeTableView_management(userTable,"Viewers",""""GroupName" = 'Viewer'""")
arcpy.TableToDomain_management("Viewers","Username","Username",domainTargetGdb,"Viewers","Viewer Users","REPLACE")&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will need to change the source of the users table and the target geodatabase as well as the query expressions used to select your user groups in the Make Table View tool.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 02:42:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/table-to-domain-with-filter/m-p/626548#M20795</guid>
      <dc:creator>OwenEarley</dc:creator>
      <dc:date>2021-12-12T02:42:19Z</dc:date>
    </item>
    <item>
      <title>Re: Table to Domain with Filter</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/table-to-domain-with-filter/m-p/626549#M20796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks. That makes a lot of sense.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Apr 2015 17:38:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/table-to-domain-with-filter/m-p/626549#M20796</guid>
      <dc:creator>ToddHenry1</dc:creator>
      <dc:date>2015-04-17T17:38:00Z</dc:date>
    </item>
  </channel>
</rss>

