{"id":2907722,"date":"2025-07-25T10:35:42","date_gmt":"2025-07-25T17:35:42","guid":{"rendered":"https:\/\/www.esri.com\/arcgis-blog\/?post_type=blog&#038;p=2907722"},"modified":"2025-07-25T10:35:42","modified_gmt":"2025-07-25T17:35:42","slug":"batch-work-order-generation-with-attribute-rules-uc-2025-demo","status":"publish","type":"blog","link":"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-pro\/data-management\/batch-work-order-generation-with-attribute-rules-uc-2025-demo","title":{"rendered":"Batch Work Order Generation with Attribute Rules (UC 2025 Demo)"},"author":7511,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"_acf_changed":false,"_searchwp_excluded":""},"categories":[23851],"tags":[302212],"industry":[],"product":[36561],"class_list":["post-2907722","blog","type-blog","status-publish","format-standard","hentry","category-data-management","tag-attribute-rules","product-arcgis-pro"],"acf":{"authors":[{"ID":7511,"user_firstname":"Hussein","user_lastname":"Nasser","nickname":"Hussein Nasser","user_nicename":"hussein-nasser","display_name":"Hussein Nasser","user_email":"HNasser@esri.com","user_url":"http:\/\/www.husseinnasser.com","user_registered":"2018-03-21 18:21:21","user_description":"Product Engineer at Esri, Author of several GIS books and Software Engineering Content Creator on YouTube and a podcast host.","user_avatar":"<img data-del=\"avatar\" src='https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2018\/06\/profile.png' class='avatar pp-user-avatar avatar-96 photo ' height='96' width='96'\/>"}],"short_description":"This blog details how to create multiple workorders on a given area.","flexible_content":[{"acf_fc_layout":"content","content":"<p>At the <a href=\"https:\/\/uc2025.esri.com\/\">User Conference 2025<\/a>, a customer came by the showcase asking for an interesting workflow to automate the creation of work orders in a given area using Attribute rules because it was a time consuming process for their editors. I decided to make that my demo for the User Conference 2025, and to my surprise, multiple other customers had similar requests.<\/p>\n<p>Since it is a common rule, I thought I&#8217;d author a blog detailing how to do this.<\/p>\n<p>You have a tree feature class, and you want to create a work order to maintain or trim trees and you want to do that for each tree for a selected area\/boundary. The work order is a related table that will have to be populated with the date, a unique work order ID, and the tree&#8217;s primary key. This idea can be expanded to any related records. By the end of this blog, you will be able to have something like this, and I&#8217;ll also share the code and data.<\/p>\n"},{"acf_fc_layout":"image","image":{"ID":2907812,"id":2907812,"title":"Batch work order generation with Attribute Rules","filename":"tree.gif","filesize":7537670,"url":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/07\/tree.gif","link":"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-pro\/data-management\/batch-work-order-generation-with-attribute-rules-uc-2025-demo\/tree-3","alt":"","author":"7511","description":"Batch workorder creation with Attribute Rules","caption":"Batch work order generation with Attribute Rules","name":"tree-3","status":"inherit","uploaded_to":2907722,"date":"2025-07-24 21:59:00","modified":"2025-07-25 17:17:26","menu_order":0,"mime_type":"image\/gif","type":"image","subtype":"gif","icon":"https:\/\/www.esri.com\/arcgis-blog\/wp-includes\/images\/media\/default.png","width":1510,"height":946,"sizes":{"thumbnail":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/07\/tree-213x200.gif","thumbnail-width":213,"thumbnail-height":200,"medium":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/07\/tree.gif","medium-width":417,"medium-height":261,"medium_large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/07\/tree.gif","medium_large-width":768,"medium_large-height":481,"large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/07\/tree.gif","large-width":1510,"large-height":946,"1536x1536":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/07\/tree.gif","1536x1536-width":1510,"1536x1536-height":946,"2048x2048":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/07\/tree.gif","2048x2048-width":1510,"2048x2048-height":946,"card_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/07\/tree-742x465.gif","card_image-width":742,"card_image-height":465,"wide_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/07\/tree.gif","wide_image-width":1510,"wide_image-height":946}},"image_position":"center","orientation":"horizontal","hyperlink":""},{"acf_fc_layout":"content","content":"<h3>Schema creation<\/h3>\n<p>First, let us create the schema. We want to create this in a mobile geodatabase and include the following:<\/p>\n<ul>\n<li>Tree: a point class that will store information about trees, including global ID, height, and other attributes.<\/li>\n<li>Workorder: a point class that will store work order information about the tree, including work order ID, tree GUID, work order date, etc.<\/li>\n<li>Boundary: a polygon class that will be used to draw a boundary over the trees on which we want to create work orders.<\/li>\n<li>Relationship class between the Tree and Workorder classes (where one tree can have many work orders).<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n"},{"acf_fc_layout":"image","image":{"ID":2908032,"id":2908032,"title":"2025-07-24_15-26-58","filename":"2025-07-24_15-26-58.png","filesize":10673,"url":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/07\/2025-07-24_15-26-58.png","link":"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-pro\/data-management\/batch-work-order-generation-with-attribute-rules-uc-2025-demo\/2025-07-24_15-26-58","alt":"","author":"7511","description":"","caption":"","name":"2025-07-24_15-26-58","status":"inherit","uploaded_to":2907722,"date":"2025-07-24 22:27:30","modified":"2025-07-24 22:27:30","menu_order":0,"mime_type":"image\/png","type":"image","subtype":"png","icon":"https:\/\/www.esri.com\/arcgis-blog\/wp-includes\/images\/media\/default.png","width":303,"height":215,"sizes":{"thumbnail":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/07\/2025-07-24_15-26-58-213x200.png","thumbnail-width":213,"thumbnail-height":200,"medium":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/07\/2025-07-24_15-26-58.png","medium-width":303,"medium-height":215,"medium_large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/07\/2025-07-24_15-26-58.png","medium_large-width":303,"medium_large-height":215,"large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/07\/2025-07-24_15-26-58.png","large-width":303,"large-height":215,"1536x1536":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/07\/2025-07-24_15-26-58.png","1536x1536-width":303,"1536x1536-height":215,"2048x2048":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/07\/2025-07-24_15-26-58.png","2048x2048-width":303,"2048x2048-height":215,"card_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/07\/2025-07-24_15-26-58.png","card_image-width":303,"card_image-height":215,"wide_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/07\/2025-07-24_15-26-58.png","wide_image-width":303,"wide_image-height":215}},"image_position":"center","orientation":"horizontal","hyperlink":""},{"acf_fc_layout":"content","content":"<h3>Generate Unique Workorderid<\/h3>\n<p>To generate a unique ID for every work order that is created, we will create a database sequence and query the sequence from an attribute rule.<\/p>\n<p>To create the database sequence, we will use the &#8220;Create Database Sequence&#8221; geoprocessing tool and name it &#8220;tree&#8221;. We will set it to start from 1000 and increment by 1.<\/p>\n"},{"acf_fc_layout":"image","image":{"ID":2908042,"id":2908042,"title":"Create Database Sequence","filename":"blog1-1.png","filesize":16664,"url":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/07\/blog1-1.png","link":"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-pro\/data-management\/batch-work-order-generation-with-attribute-rules-uc-2025-demo\/blog1-17","alt":"","author":"7511","description":"Create Database Sequence","caption":"Create Database Sequence","name":"blog1-17","status":"inherit","uploaded_to":2907722,"date":"2025-07-24 22:36:11","modified":"2025-07-24 22:36:24","menu_order":0,"mime_type":"image\/png","type":"image","subtype":"png","icon":"https:\/\/www.esri.com\/arcgis-blog\/wp-includes\/images\/media\/default.png","width":540,"height":374,"sizes":{"thumbnail":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/07\/blog1-1-213x200.png","thumbnail-width":213,"thumbnail-height":200,"medium":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/07\/blog1-1.png","medium-width":377,"medium-height":261,"medium_large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/07\/blog1-1.png","medium_large-width":540,"medium_large-height":374,"large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/07\/blog1-1.png","large-width":540,"large-height":374,"1536x1536":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/07\/blog1-1.png","1536x1536-width":540,"1536x1536-height":374,"2048x2048":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/07\/blog1-1.png","2048x2048-width":540,"2048x2048-height":374,"card_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/07\/blog1-1.png","card_image-width":540,"card_image-height":374,"wide_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/07\/blog1-1.png","wide_image-width":540,"wide_image-height":374}},"image_position":"center","orientation":"horizontal","hyperlink":""},{"acf_fc_layout":"content","content":"<p>Next, we will author a new immediate calculation attribute rule on the Workorder class that triggers on insert and assigns the unique ID to the Workorder ID field.<\/p>\n<p>We will use the <a href=\"https:\/\/developers.arcgis.com\/arcade\/function-reference\/enterprise_functions\/#nextsequencevalue\">NextSequenceValue<\/a> Arcade function and provide the sequence name we created in the previous step to query the database sequence. This will give us a new ID every time the rule executes.<\/p>\n<p>&nbsp;<\/p>\n<blockquote>\n<p style=\"text-align: center\"><em>Note: Even in a multi-user versioned environment, if two users are editing on their own versions, each will get unique values. For instance, if editor 1 creates a work order, it will get 1001. If editor 2 creates a work order, it will get 1002 despite being on different versions. Even when the edits are discarded, the sequences are not returned. Once a sequence is queried, it is consumed and &#8220;burnt&#8221;.<\/em><\/p>\n<\/blockquote>\n<p>&nbsp;<\/p>\n"},{"acf_fc_layout":"image","image":{"ID":2908052,"id":2908052,"title":"NextSequenceValue","filename":"blog2.png","filesize":80345,"url":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/07\/blog2.png","link":"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-pro\/data-management\/batch-work-order-generation-with-attribute-rules-uc-2025-demo\/blog2-10","alt":"","author":"7511","description":"NextSequenceValue","caption":"NextSequenceValue","name":"blog2-10","status":"inherit","uploaded_to":2907722,"date":"2025-07-24 22:38:35","modified":"2025-07-24 22:38:46","menu_order":0,"mime_type":"image\/png","type":"image","subtype":"png","icon":"https:\/\/www.esri.com\/arcgis-blog\/wp-includes\/images\/media\/default.png","width":1016,"height":923,"sizes":{"thumbnail":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/07\/blog2-213x200.png","thumbnail-width":213,"thumbnail-height":200,"medium":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/07\/blog2.png","medium-width":287,"medium-height":261,"medium_large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/07\/blog2.png","medium_large-width":768,"medium_large-height":698,"large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/07\/blog2.png","large-width":1016,"large-height":923,"1536x1536":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/07\/blog2.png","1536x1536-width":1016,"1536x1536-height":923,"2048x2048":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/07\/blog2.png","2048x2048-width":1016,"2048x2048-height":923,"card_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/07\/blog2-512x465.png","card_image-width":512,"card_image-height":465,"wide_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/07\/blog2.png","wide_image-width":1016,"wide_image-height":923}},"image_position":"center","orientation":"horizontal","hyperlink":""},{"acf_fc_layout":"content","content":"<p>We can now create work order features manually and obtain unique IDs. However, we would have to relate them manually to the tree, set the creation date, etc., which can involve a lot of editing work. The idea is to automate this process.<\/p>\n"},{"acf_fc_layout":"image","image":{"ID":2908112,"id":2908112,"title":"workorder creation","filename":"workorder.gif","filesize":2756679,"url":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/07\/workorder.gif","link":"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-pro\/data-management\/batch-work-order-generation-with-attribute-rules-uc-2025-demo\/workorder-2","alt":"","author":"7511","description":"workorder creation","caption":"workorder creation","name":"workorder-2","status":"inherit","uploaded_to":2907722,"date":"2025-07-24 22:52:47","modified":"2025-07-24 22:52:56","menu_order":0,"mime_type":"image\/gif","type":"image","subtype":"gif","icon":"https:\/\/www.esri.com\/arcgis-blog\/wp-includes\/images\/media\/default.png","width":890,"height":880,"sizes":{"thumbnail":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/07\/workorder-213x200.gif","thumbnail-width":213,"thumbnail-height":200,"medium":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/07\/workorder.gif","medium-width":264,"medium-height":261,"medium_large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/07\/workorder.gif","medium_large-width":768,"medium_large-height":759,"large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/07\/workorder.gif","large-width":890,"large-height":880,"1536x1536":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/07\/workorder.gif","1536x1536-width":890,"1536x1536-height":880,"2048x2048":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/07\/workorder.gif","2048x2048-width":890,"2048x2048-height":880,"card_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/07\/workorder-470x465.gif","card_image-width":470,"card_image-height":465,"wide_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/07\/workorder.gif","wide_image-width":890,"wide_image-height":880}},"image_position":"center","orientation":"horizontal","hyperlink":""},{"acf_fc_layout":"content","content":"<h3>Batch Work order Generation<\/h3>\n<p>To achieve this, we will author a new calculation attribute rule against the Boundary class. This rule will intersect all trees, create one work order for each tree, and populate the foreign key, geometry and the creation date. Since we have a rule on work order creation to generate a unique ID, we will obtain that as a side effect.<\/p>\n<p>This is the rule we will author.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n"},{"acf_fc_layout":"image","image":{"ID":2909052,"id":2909052,"title":"Create workorders Attribute rules","filename":"blog3.png","filesize":232478,"url":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/07\/blog3.png","link":"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-pro\/data-management\/batch-work-order-generation-with-attribute-rules-uc-2025-demo\/blog3-8","alt":"","author":"7511","description":"Create workorders Attribute rules","caption":"Create workorders Attribute rules","name":"blog3-8","status":"inherit","uploaded_to":2907722,"date":"2025-07-25 17:04:38","modified":"2025-07-25 17:04:51","menu_order":0,"mime_type":"image\/png","type":"image","subtype":"png","icon":"https:\/\/www.esri.com\/arcgis-blog\/wp-includes\/images\/media\/default.png","width":1164,"height":860,"sizes":{"thumbnail":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/07\/blog3-213x200.png","thumbnail-width":213,"thumbnail-height":200,"medium":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/07\/blog3.png","medium-width":353,"medium-height":261,"medium_large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/07\/blog3.png","medium_large-width":768,"medium_large-height":567,"large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/07\/blog3.png","large-width":1164,"large-height":860,"1536x1536":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/07\/blog3.png","1536x1536-width":1164,"1536x1536-height":860,"2048x2048":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/07\/blog3.png","2048x2048-width":1164,"2048x2048-height":860,"card_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/07\/blog3-629x465.png","card_image-width":629,"card_image-height":465,"wide_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/07\/blog3.png","wide_image-width":1164,"wide_image-height":860}},"image_position":"center","orientation":"horizontal","hyperlink":""},{"acf_fc_layout":"sidebar","content":"<p>Intersect and create workorders<\/p>\n<pre><code>\r\n<span style=\"color: #6a737d\">\/\/query the trees intersecting the boundary<\/span>\r\n<span style=\"color: #d73a49\">var<\/span> fsTrees = <span style=\"color: #e36209\">FeatureSetByName<\/span>(<span style=\"color: #e36209\">$datastore<\/span>, <span style=\"color: #032f62\">\"main.tree\"<\/span>, [<span style=\"color: #032f62\">\"globalid\"<\/span>], <span style=\"color: #005cc5\">true<\/span>)\r\n<span style=\"color: #d73a49\">var<\/span> fsInt = <span style=\"color: #e36209\">Intersects<\/span> (fsTrees, <span style=\"color: #e36209\">geometry<\/span>(<span style=\"color: #e36209\">$feature<\/span>))\r\n<span style=\"color: #6a737d\">\/\/we have all the intersecting trees.<\/span>\r\n<span style=\"color: #d73a49\">var<\/span> treeAdds = []\r\n<span style=\"color: #d73a49\">for<\/span> (<span style=\"color: #d73a49\">var<\/span> t <span style=\"color: #d73a49\">in<\/span> fsInt)\r\n   <span style=\"color: #e36209\">push<\/span>(treeAdds, {<span style=\"color: #032f62\">\"attributes\"<\/span>: {<span style=\"color: #032f62\">\"treeguid\"<\/span>: t.globalid, <span style=\"color: #032f62\">\"workorderdate\"<\/span>: <span style=\"color: #e36209\">now<\/span>()}, <span style=\"color: #032f62\">\"geometry\"<\/span>: <span style=\"color: #e36209\">geometry<\/span>(t) })\r\n\/\/create the workorders, using the same geometry\r\n<span style=\"color: #d73a49\">return<\/span> { \r\n     <span style=\"color: #032f62\">\"edit\"<\/span>: [{<span style=\"color: #032f62\">\"className\"<\/span>: <span style=\"color: #032f62\">\"main.workorder\"<\/span>, \r\n              <span style=\"color: #032f62\">\"adds\"<\/span>: treeAdds\r\n         }] \r\n    \r\n}\r\n\r\n\r\n\r\n\r\n<\/code><\/pre>\n","image_reference":false,"layout":"standard","image_reference_figure":"","snippet":"","spotlight_name":"","section_title":"","position":"Center","spotlight_image":false},{"acf_fc_layout":"content","content":"<p>Save the rule and create a boundary around the trees you want to generate work orders for and that it is !<\/p>\n"},{"acf_fc_layout":"image","image":{"ID":2909082,"id":2909082,"title":"workorder_auto","filename":"workorder_auto.gif","filesize":2351925,"url":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/07\/workorder_auto.gif","link":"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-pro\/data-management\/batch-work-order-generation-with-attribute-rules-uc-2025-demo\/workorder_auto","alt":"","author":"7511","description":"","caption":"","name":"workorder_auto","status":"inherit","uploaded_to":2907722,"date":"2025-07-25 17:05:31","modified":"2025-07-25 17:05:31","menu_order":0,"mime_type":"image\/gif","type":"image","subtype":"gif","icon":"https:\/\/www.esri.com\/arcgis-blog\/wp-includes\/images\/media\/default.png","width":1056,"height":802,"sizes":{"thumbnail":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/07\/workorder_auto-213x200.gif","thumbnail-width":213,"thumbnail-height":200,"medium":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/07\/workorder_auto.gif","medium-width":344,"medium-height":261,"medium_large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/07\/workorder_auto.gif","medium_large-width":768,"medium_large-height":583,"large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/07\/workorder_auto.gif","large-width":1056,"large-height":802,"1536x1536":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/07\/workorder_auto.gif","1536x1536-width":1056,"1536x1536-height":802,"2048x2048":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/07\/workorder_auto.gif","2048x2048-width":1056,"2048x2048-height":802,"card_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/07\/workorder_auto-612x465.gif","card_image-width":612,"card_image-height":465,"wide_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/07\/workorder_auto.gif","wide_image-width":1056,"wide_image-height":802}},"image_position":"center","orientation":"horizontal","hyperlink":""},{"acf_fc_layout":"content","content":"<p>The rule can be improved to store certain attributes from the boundary to the work order record. Or perhaps prevent multiple work orders from being created on the same tree. We can also store the total number of work orders on the tree .<\/p>\n<p>You can download the project and data <a href=\"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/07\/UC2025.zip\">here<\/a>.<\/p>\n"}],"show_article_image":true,"card_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2024\/12\/Conifer-forest-card.jpg","wide_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2024\/12\/Conifer-forest-banner.jpg","related_articles":""},"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v25.9 (Yoast SEO v25.9) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Batch Work Order Generation with Attribute Rules (UC 2025 Demo)<\/title>\n<meta name=\"description\" content=\"Using attribute rules to batch generate work orders\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-pro\/data-management\/batch-work-order-generation-with-attribute-rules-uc-2025-demo\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Batch Work Order Generation with Attribute Rules (UC 2025 Demo)\" \/>\n<meta property=\"og:description\" content=\"Using attribute rules to batch generate work orders\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-pro\/data-management\/batch-work-order-generation-with-attribute-rules-uc-2025-demo\" \/>\n<meta property=\"og:site_name\" content=\"ArcGIS Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/esrigis\/\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@ESRI\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":[\"Article\",\"BlogPosting\"],\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-pro\/data-management\/batch-work-order-generation-with-attribute-rules-uc-2025-demo#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-pro\/data-management\/batch-work-order-generation-with-attribute-rules-uc-2025-demo\"},\"author\":{\"name\":\"Hussein Nasser\",\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/#\/schema\/person\/78b7647b1db598b3c791d039593e5b2b\"},\"headline\":\"Batch Work Order Generation with Attribute Rules (UC 2025 Demo)\",\"datePublished\":\"2025-07-25T17:35:42+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-pro\/data-management\/batch-work-order-generation-with-attribute-rules-uc-2025-demo\"},\"wordCount\":9,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/#organization\"},\"keywords\":[\"attribute rules\"],\"articleSection\":[\"Data Management\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-pro\/data-management\/batch-work-order-generation-with-attribute-rules-uc-2025-demo#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-pro\/data-management\/batch-work-order-generation-with-attribute-rules-uc-2025-demo\",\"url\":\"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-pro\/data-management\/batch-work-order-generation-with-attribute-rules-uc-2025-demo\",\"name\":\"Batch Work Order Generation with Attribute Rules (UC 2025 Demo)\",\"isPartOf\":{\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/#website\"},\"datePublished\":\"2025-07-25T17:35:42+00:00\",\"description\":\"Using attribute rules to batch generate work orders\",\"breadcrumb\":{\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-pro\/data-management\/batch-work-order-generation-with-attribute-rules-uc-2025-demo#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-pro\/data-management\/batch-work-order-generation-with-attribute-rules-uc-2025-demo\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-pro\/data-management\/batch-work-order-generation-with-attribute-rules-uc-2025-demo#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.esri.com\/arcgis-blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Batch Work Order Generation with Attribute Rules (UC 2025 Demo)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/#website\",\"url\":\"https:\/\/www.esri.com\/arcgis-blog\/\",\"name\":\"ArcGIS Blog\",\"description\":\"Get insider info from Esri product teams\",\"publisher\":{\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.esri.com\/arcgis-blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/#organization\",\"name\":\"Esri\",\"url\":\"https:\/\/www.esri.com\/arcgis-blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2018\/04\/Esri.png\",\"contentUrl\":\"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2018\/04\/Esri.png\",\"width\":400,\"height\":400,\"caption\":\"Esri\"},\"image\":{\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/esrigis\/\",\"https:\/\/x.com\/ESRI\",\"https:\/\/www.linkedin.com\/company\/5311\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/#\/schema\/person\/78b7647b1db598b3c791d039593e5b2b\",\"name\":\"Hussein Nasser\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2018\/06\/profile.png\",\"contentUrl\":\"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2018\/06\/profile.png\",\"caption\":\"Hussein Nasser\"},\"description\":\"Product Engineer at Esri, Author of several GIS books and Software Engineering Content Creator on YouTube and a podcast host.\",\"sameAs\":[\"http:\/\/www.husseinnasser.com\",\"https:\/\/www.linkedin.com\/in\/hnaser\/\",\"https:\/\/x.com\/hnasr\"],\"url\":\"https:\/\/www.esri.com\/arcgis-blog\/author\/hussein-nasser\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Batch Work Order Generation with Attribute Rules (UC 2025 Demo)","description":"Using attribute rules to batch generate work orders","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-pro\/data-management\/batch-work-order-generation-with-attribute-rules-uc-2025-demo","og_locale":"en_US","og_type":"article","og_title":"Batch Work Order Generation with Attribute Rules (UC 2025 Demo)","og_description":"Using attribute rules to batch generate work orders","og_url":"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-pro\/data-management\/batch-work-order-generation-with-attribute-rules-uc-2025-demo","og_site_name":"ArcGIS Blog","article_publisher":"https:\/\/www.facebook.com\/esrigis\/","twitter_card":"summary_large_image","twitter_site":"@ESRI","twitter_misc":{"Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":["Article","BlogPosting"],"@id":"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-pro\/data-management\/batch-work-order-generation-with-attribute-rules-uc-2025-demo#article","isPartOf":{"@id":"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-pro\/data-management\/batch-work-order-generation-with-attribute-rules-uc-2025-demo"},"author":{"name":"Hussein Nasser","@id":"https:\/\/www.esri.com\/arcgis-blog\/#\/schema\/person\/78b7647b1db598b3c791d039593e5b2b"},"headline":"Batch Work Order Generation with Attribute Rules (UC 2025 Demo)","datePublished":"2025-07-25T17:35:42+00:00","mainEntityOfPage":{"@id":"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-pro\/data-management\/batch-work-order-generation-with-attribute-rules-uc-2025-demo"},"wordCount":9,"commentCount":0,"publisher":{"@id":"https:\/\/www.esri.com\/arcgis-blog\/#organization"},"keywords":["attribute rules"],"articleSection":["Data Management"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-pro\/data-management\/batch-work-order-generation-with-attribute-rules-uc-2025-demo#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-pro\/data-management\/batch-work-order-generation-with-attribute-rules-uc-2025-demo","url":"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-pro\/data-management\/batch-work-order-generation-with-attribute-rules-uc-2025-demo","name":"Batch Work Order Generation with Attribute Rules (UC 2025 Demo)","isPartOf":{"@id":"https:\/\/www.esri.com\/arcgis-blog\/#website"},"datePublished":"2025-07-25T17:35:42+00:00","description":"Using attribute rules to batch generate work orders","breadcrumb":{"@id":"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-pro\/data-management\/batch-work-order-generation-with-attribute-rules-uc-2025-demo#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-pro\/data-management\/batch-work-order-generation-with-attribute-rules-uc-2025-demo"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-pro\/data-management\/batch-work-order-generation-with-attribute-rules-uc-2025-demo#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.esri.com\/arcgis-blog\/"},{"@type":"ListItem","position":2,"name":"Batch Work Order Generation with Attribute Rules (UC 2025 Demo)"}]},{"@type":"WebSite","@id":"https:\/\/www.esri.com\/arcgis-blog\/#website","url":"https:\/\/www.esri.com\/arcgis-blog\/","name":"ArcGIS Blog","description":"Get insider info from Esri product teams","publisher":{"@id":"https:\/\/www.esri.com\/arcgis-blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.esri.com\/arcgis-blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.esri.com\/arcgis-blog\/#organization","name":"Esri","url":"https:\/\/www.esri.com\/arcgis-blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.esri.com\/arcgis-blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2018\/04\/Esri.png","contentUrl":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2018\/04\/Esri.png","width":400,"height":400,"caption":"Esri"},"image":{"@id":"https:\/\/www.esri.com\/arcgis-blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/esrigis\/","https:\/\/x.com\/ESRI","https:\/\/www.linkedin.com\/company\/5311\/"]},{"@type":"Person","@id":"https:\/\/www.esri.com\/arcgis-blog\/#\/schema\/person\/78b7647b1db598b3c791d039593e5b2b","name":"Hussein Nasser","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.esri.com\/arcgis-blog\/#\/schema\/person\/image\/","url":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2018\/06\/profile.png","contentUrl":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2018\/06\/profile.png","caption":"Hussein Nasser"},"description":"Product Engineer at Esri, Author of several GIS books and Software Engineering Content Creator on YouTube and a podcast host.","sameAs":["http:\/\/www.husseinnasser.com","https:\/\/www.linkedin.com\/in\/hnaser\/","https:\/\/x.com\/hnasr"],"url":"https:\/\/www.esri.com\/arcgis-blog\/author\/hussein-nasser"}]}},"text_date":"July 25, 2025","author_name":"Hussein Nasser","author_page":"https:\/\/www.esri.com\/arcgis-blog\/author\/hussein-nasser","custom_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2024\/12\/Conifer-forest-banner.jpg","primary_product":"ArcGIS Pro","tag_data":[{"term_id":302212,"name":"attribute rules","slug":"attribute-rules","term_group":0,"term_taxonomy_id":302212,"taxonomy":"post_tag","description":"","parent":0,"count":35,"filter":"raw"}],"category_data":[{"term_id":23851,"name":"Data Management","slug":"data-management","term_group":0,"term_taxonomy_id":23851,"taxonomy":"category","description":"","parent":0,"count":920,"filter":"raw"}],"product_data":[{"term_id":36561,"name":"ArcGIS Pro","slug":"arcgis-pro","term_group":0,"term_taxonomy_id":36561,"taxonomy":"product","description":"","parent":0,"count":2036,"filter":"raw"}],"primary_product_link":"https:\/\/www.esri.com\/arcgis-blog\/?s=#&products=arcgis-pro","_links":{"self":[{"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/blog\/2907722","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/blog"}],"about":[{"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/types\/blog"}],"author":[{"embeddable":true,"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/users\/7511"}],"replies":[{"embeddable":true,"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/comments?post=2907722"}],"version-history":[{"count":0,"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/blog\/2907722\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/media?parent=2907722"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/categories?post=2907722"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/tags?post=2907722"},{"taxonomy":"industry","embeddable":true,"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/industry?post=2907722"},{"taxonomy":"product","embeddable":true,"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/product?post=2907722"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}