{"id":2960842,"date":"2026-03-24T11:33:44","date_gmt":"2026-03-24T18:33:44","guid":{"rendered":"https:\/\/www.esri.com\/arcgis-blog\/?post_type=blog&#038;p=2960842"},"modified":"2026-03-25T09:36:39","modified_gmt":"2026-03-25T16:36:39","slug":"understanding-relationship-classes-in-arcgis-online-hosted-feature-services","status":"publish","type":"blog","link":"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-online\/data-management\/understanding-relationship-classes-in-arcgis-online-hosted-feature-services","title":{"rendered":"Understanding Relationship Classes in ArcGIS Online Hosted Feature Services"},"author":437412,"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":[42641,24521,767662,765022],"industry":[],"product":[36551],"class_list":["post-2960842","blog","type-blog","status-publish","format-standard","hentry","category-data-management","tag-arcgis-online","tag-hosted-feature-services","tag-related-records","tag-relationship-class","product-arcgis-online"],"acf":{"authors":[{"ID":437412,"user_firstname":"Jessica","user_lastname":"Parteno","nickname":"Jessica Parteno","user_nicename":"jpartenoesri-com_esriinc","display_name":"Jessica Parteno","user_email":"jparteno@esri.com","user_url":"","user_registered":"2026-02-09 23:17:45","user_description":"Jessica is a Product Engineer on the ArcGIS Online team based out of San Jose, California. She is passionate about building intuitive tools that strengthen data management and elevate mapping experiences.","user_avatar":"<img data-del=\"avatar\" src='https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2026\/03\/Jessie-Parteno05-small-square-213x200.jpg' class='avatar pp-user-avatar avatar-96 photo ' height='96' width='96'\/>"}],"short_description":"Relationship classes keep your hosted feature layers connected, enabling smarter editing, cleaner data, and richer insights across ArcGIS Online.","flexible_content":[{"acf_fc_layout":"content","content":"<p><span class=\"TextRun SCXW171688391 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW171688391 BCX0\">Hosted feature layers are the foundation of\u00a0<\/span><span class=\"NormalTextRun SCXW171688391 BCX0\">nearly everything<\/span><span class=\"NormalTextRun SCXW171688391 BCX0\">\u00a0you do\u00a0<\/span><span class=\"NormalTextRun ContextualSpellingAndGrammarErrorV2Themed SCXW171688391 BCX0\">in<\/span><span class=\"NormalTextRun SCXW171688391 BCX0\">\u00a0ArcGIS Online\u2014whether\u00a0<\/span><span class=\"NormalTextRun SCXW171688391 BCX0\">you&#8217;re<\/span><span class=\"NormalTextRun SCXW171688391 BCX0\">\u00a0building a web map, reviewing data in the office, collecting it in the field, or running analysis across your organization. They power your apps, dashboards, and mobile workflows.\u00a0<\/span><span class=\"NormalTextRun SCXW171688391 BCX0\">I<\/span><span class=\"NormalTextRun SCXW171688391 BCX0\">n many\u00a0<\/span><span class=\"NormalTextRun SCXW171688391 BCX0\">real-world<\/span><span class=\"NormalTextRun SCXW171688391 BCX0\">\u00a0scenarios,\u00a0<\/span><span class=\"NormalTextRun SCXW171688391 BCX0\">your data\u00a0<\/span><span class=\"NormalTextRun SCXW171688391 BCX0\">isn\u2019t<\/span><span class=\"NormalTextRun SCXW171688391 BCX0\">\u00a0a simple flat table<\/span><span class=\"NormalTextRun SCXW171688391 BCX0\">.\u00a0<\/span><span class=\"NormalTextRun SCXW171688391 BCX0\">A feature might have dozens of related records<\/span><span class=\"NormalTextRun SCXW171688391 BCX0\">,\u00a0<\/span><span class=\"NormalTextRun SCXW171688391 BCX0\">inspections, notes, observations<\/span><span class=\"NormalTextRun SCXW171688391 BCX0\">,\u00a0<\/span><span class=\"NormalTextRun SCXW171688391 BCX0\">all combining to\u00a0<\/span><span class=\"NormalTextRun SCXW171688391 BCX0\">add important context that helps tell the full story<\/span><span class=\"NormalTextRun SCXW171688391 BCX0\">\u00a0and improve decision-making.\u00a0<\/span><\/span><span class=\"EOP Selected SCXW171688391 BCX0\" data-ccp-props=\"{}\">\u00a0<\/span><\/p>\n<p><span data-contrast=\"auto\">Relationship classes in ArcGIS Online are a powerful solution to keep related records connected. They support cleaner data models, smarter editing workflows, and richer insight across web maps and apps. <\/span><span data-ccp-props=\"{}\">\u00a0<\/span><\/p>\n<p><span data-contrast=\"auto\">This blog breaks down what relationship classes are, how to create them in ArcGIS Pro, how to publish a hosted feature layer with relationship classes and how to use them effectively in ArcGIS Online, along with the key workflow differences you\u2019ll encounter between ArcGIS Pro and the web.<\/span><span data-ccp-props=\"{}\">\u00a0<\/span><\/p>\n<h2><b><span data-contrast=\"auto\">What Are Relationship Classes, and Key Considerations When Setting Them Up<\/span><\/b><span data-ccp-props=\"{}\">\u00a0<\/span><\/h2>\n<p><span data-contrast=\"auto\">Relationship classes define how records in one dataset are connected to records in another. There are two sides to the relationship, the origin and destination datasets; both can be a spatial layer or a nonspatial table. The origin dataset is where the relationship begins, and the destination contains the related features\/records. It\u2019s also important to note that relationship classes can only be created in a geodatabase, and both the origin and destination datasets must reside in the same geodatabase. <\/span><span data-ccp-props=\"{}\">\u00a0<\/span><\/p>\n"},{"acf_fc_layout":"image","image":{"ID":2960864,"id":2960864,"title":"Diagram_One_to_Many","filename":"Diagram_One_to_Many.png","filesize":195407,"url":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2026\/03\/Diagram_One_to_Many.png","link":"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-online\/data-management\/understanding-relationship-classes-in-arcgis-online-hosted-feature-services\/diagram_one_to_many","alt":"This is an example of a one-to-many (1:M) relationship class. The relationship is between the origin (Campground Facilities) to the destination (Campsites).","author":"437412","description":"","caption":"This is an example of a one-to-many (1:M) relationship class.","name":"diagram_one_to_many","status":"inherit","uploaded_to":2960842,"date":"2026-03-19 21:52:29","modified":"2026-03-23 19:28:12","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":663,"height":444,"sizes":{"thumbnail":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2026\/03\/Diagram_One_to_Many-213x200.png","thumbnail-width":213,"thumbnail-height":200,"medium":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2026\/03\/Diagram_One_to_Many.png","medium-width":390,"medium-height":261,"medium_large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2026\/03\/Diagram_One_to_Many.png","medium_large-width":663,"medium_large-height":444,"large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2026\/03\/Diagram_One_to_Many.png","large-width":663,"large-height":444,"1536x1536":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2026\/03\/Diagram_One_to_Many.png","1536x1536-width":663,"1536x1536-height":444,"2048x2048":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2026\/03\/Diagram_One_to_Many.png","2048x2048-width":663,"2048x2048-height":444,"card_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2026\/03\/Diagram_One_to_Many.png","card_image-width":663,"card_image-height":444,"wide_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2026\/03\/Diagram_One_to_Many.png","wide_image-width":663,"wide_image-height":444}},"image_position":"center","orientation":"horizontal","hyperlink":""},{"acf_fc_layout":"content","content":"<p><span class=\"TextRun SCXW191574851 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW191574851 BCX0\">Before creating a relationship class,\u00a0<\/span><span class=\"NormalTextRun SCXW191574851 BCX0\">it\u2019s<\/span><span class=\"NormalTextRun SCXW191574851 BCX0\">\u00a0important to think through a few key design choices to ensure it supports your workflow correctly. Decisions around the relationship type and cardinality directly affect how features connect and behave.<\/span><\/span><span class=\"EOP Selected SCXW191574851 BCX0\" data-ccp-props=\"{}\">\u00a0<\/span><\/p>\n<h3><b><span data-contrast=\"auto\">Primary and Foreign Keys<\/span><\/b><span data-ccp-props=\"{}\">\u00a0<\/span><\/h3>\n<p><span data-contrast=\"auto\">To create a relationship between features in different tables, there must be a way to match records across those datasets. This is done using fields that\u00a0contain\u00a0corresponding values in the origin and destination tables\u2014known as the primary key and foreign key.<\/span><span data-ccp-props=\"{}\">\u00a0<\/span><\/p>\n<ul>\n<li data-leveltext=\"\uf0b7\" data-font=\"Symbol\" data-listid=\"17\" data-list-defn-props=\"{&quot;335552541&quot;:1,&quot;335559685&quot;:720,&quot;335559991&quot;:360,&quot;469769226&quot;:&quot;Symbol&quot;,&quot;469769242&quot;:[8226],&quot;469777803&quot;:&quot;left&quot;,&quot;469777804&quot;:&quot;\uf0b7&quot;,&quot;469777815&quot;:&quot;hybridMultilevel&quot;}\" data-aria-posinset=\"1\" data-aria-level=\"1\"><b><span data-contrast=\"auto\">Primary keys<\/span><\/b><span data-contrast=\"auto\">\u00a0&#8211;\u00a0are unique identifiers for each record in a table. They ensure that every feature or row can be referenced reliably.<\/span><span data-ccp-props=\"{}\">\u00a0<\/span><\/li>\n<li data-leveltext=\"\uf0b7\" data-font=\"Symbol\" data-listid=\"17\" data-list-defn-props=\"{&quot;335552541&quot;:1,&quot;335559685&quot;:720,&quot;335559991&quot;:360,&quot;469769226&quot;:&quot;Symbol&quot;,&quot;469769242&quot;:[8226],&quot;469777803&quot;:&quot;left&quot;,&quot;469777804&quot;:&quot;\uf0b7&quot;,&quot;469777815&quot;:&quot;hybridMultilevel&quot;}\" data-aria-posinset=\"1\" data-aria-level=\"1\"><b><span data-contrast=\"auto\">Foreign keys<\/span><\/b><span data-contrast=\"auto\"><span data-contrast=\"auto\"> &#8211; are fields in the related table that store the primary key values from the origin table, <\/span><\/span>creating the link that identifies which records are related.<\/li>\n<\/ul>\n<h3><b><span data-contrast=\"auto\">Types<\/span><\/b><span data-ccp-props=\"{}\">\u00a0<\/span><\/h3>\n<p><span data-contrast=\"auto\">The type of relationship (Simple or Composite)\u00a0defines the dependency\u00a0of the\u00a0related\u00a0features.\u00a0Choosing the correct type is important for\u00a0maintaining\u00a0data integrity and supporting your workflow.<\/span><span data-ccp-props=\"{}\">\u00a0<\/span><\/p>\n<ul>\n<li data-leveltext=\"\uf0b7\" data-font=\"Symbol\" data-listid=\"12\" data-list-defn-props=\"{&quot;335552541&quot;:1,&quot;335559685&quot;:720,&quot;335559991&quot;:360,&quot;469769226&quot;:&quot;Symbol&quot;,&quot;469769242&quot;:[8226],&quot;469777803&quot;:&quot;left&quot;,&quot;469777804&quot;:&quot;\uf0b7&quot;,&quot;469777815&quot;:&quot;hybridMultilevel&quot;}\" data-aria-posinset=\"1\" data-aria-level=\"1\"><b><span data-contrast=\"auto\">Simple relationship classes<\/span><\/b><span data-contrast=\"auto\">\u00a0\u2013\u00a0Both datasets\u00a0remain\u00a0independent. Neither feature requires the other to exist, and\u00a0deleting\u00a0a feature in the\u00a0origin\u00a0dataset does\u00a0not\u00a0delete\u00a0any related records.\u00a0<\/span><span data-ccp-props=\"{}\">\u00a0<\/span><\/li>\n<li data-leveltext=\"\uf0b7\" data-font=\"Symbol\" data-listid=\"12\" data-list-defn-props=\"{&quot;335552541&quot;:1,&quot;335559685&quot;:720,&quot;335559991&quot;:360,&quot;469769226&quot;:&quot;Symbol&quot;,&quot;469769242&quot;:[8226],&quot;469777803&quot;:&quot;left&quot;,&quot;469777804&quot;:&quot;\uf0b7&quot;,&quot;469777815&quot;:&quot;hybridMultilevel&quot;}\" data-aria-posinset=\"1\" data-aria-level=\"1\"><b><span data-contrast=\"auto\">Composite relationship classes<\/span><\/b><span data-contrast=\"auto\">\u00a0\u2013\u00a0The\u00a0destination\u00a0features depend on the\u00a0origin\u00a0feature. If you\u00a0delete\u00a0a\u00a0feature\u00a0in the origin table, all related features\u00a0in the destination dataset\u00a0are also\u00a0deleted.\u00a0<\/span><span data-ccp-props=\"{}\">\u00a0<\/span><\/li>\n<\/ul>\n<p><b><span data-contrast=\"auto\">Note:<\/span><\/b><span data-contrast=\"auto\">\u00a0When\u00a0a\u00a0composite relationship class\u00a0(1:1 or 1:M)\u00a0is\u00a0published to ArcGIS\u00a0Online\u00a0a field index requiring unique values is automatically created on the primary key to\u00a0enforce uniqueness.\u00a0<\/span><span data-ccp-props=\"{&quot;335559685&quot;:720}\">\u00a0<\/span><\/p>\n<h3><b><span data-contrast=\"auto\">Cardinality<\/span><\/b><span data-ccp-props=\"{}\">\u00a0<\/span><\/h3>\n<p><span data-contrast=\"auto\">When you create a relationship class, the cardinality defines how many features in one dataset should be related to features in another. There are three different options:\u00a0<\/span><\/p>\n"},{"acf_fc_layout":"image","image":{"ID":2960867,"id":2960867,"title":"Cardinality","filename":"Cardinality.jpg","filesize":29936,"url":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2026\/03\/Cardinality.jpg","link":"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-online\/data-management\/understanding-relationship-classes-in-arcgis-online-hosted-feature-services\/cardinality-2","alt":"Cardinality types diagram.","author":"437412","description":"","caption":"Cardinality types diagram","name":"cardinality-2","status":"inherit","uploaded_to":2960842,"date":"2026-03-19 22:09:27","modified":"2026-03-19 22:09:46","menu_order":0,"mime_type":"image\/jpeg","type":"image","subtype":"jpeg","icon":"https:\/\/www.esri.com\/arcgis-blog\/wp-includes\/images\/media\/default.png","width":423,"height":225,"sizes":{"thumbnail":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2026\/03\/Cardinality-213x200.jpg","thumbnail-width":213,"thumbnail-height":200,"medium":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2026\/03\/Cardinality.jpg","medium-width":423,"medium-height":225,"medium_large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2026\/03\/Cardinality.jpg","medium_large-width":423,"medium_large-height":225,"large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2026\/03\/Cardinality.jpg","large-width":423,"large-height":225,"1536x1536":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2026\/03\/Cardinality.jpg","1536x1536-width":423,"1536x1536-height":225,"2048x2048":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2026\/03\/Cardinality.jpg","2048x2048-width":423,"2048x2048-height":225,"card_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2026\/03\/Cardinality.jpg","card_image-width":423,"card_image-height":225,"wide_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2026\/03\/Cardinality.jpg","wide_image-width":423,"wide_image-height":225}},"image_position":"center","orientation":"horizontal","hyperlink":""},{"acf_fc_layout":"content","content":"<ul>\n<li data-leveltext=\"\uf0b7\" data-font=\"Symbol\" data-listid=\"13\" data-list-defn-props=\"{&quot;335552541&quot;:1,&quot;335559685&quot;:720,&quot;335559991&quot;:360,&quot;469769226&quot;:&quot;Symbol&quot;,&quot;469769242&quot;:[8226],&quot;469777803&quot;:&quot;left&quot;,&quot;469777804&quot;:&quot;\uf0b7&quot;,&quot;469777815&quot;:&quot;hybridMultilevel&quot;}\" data-aria-posinset=\"1\" data-aria-level=\"1\"><b><span data-contrast=\"auto\">One-to-One\u00a0(1:1)<\/span><\/b><span data-contrast=\"auto\">\u00a0&#8211;\u00a0Each feature in the origin dataset relates to\u00a0no more than one\u00a0feature in the destination, and vice versa.<\/span><span data-ccp-props=\"{}\">\u00a0<\/span><\/li>\n<li data-leveltext=\"\uf0b7\" data-font=\"Symbol\" data-listid=\"13\" data-list-defn-props=\"{&quot;335552541&quot;:1,&quot;335559685&quot;:720,&quot;335559991&quot;:360,&quot;469769226&quot;:&quot;Symbol&quot;,&quot;469769242&quot;:[8226],&quot;469777803&quot;:&quot;left&quot;,&quot;469777804&quot;:&quot;\uf0b7&quot;,&quot;469777815&quot;:&quot;hybridMultilevel&quot;}\" data-aria-posinset=\"1\" data-aria-level=\"1\"><b><span data-contrast=\"auto\">One-to-Many (1:M)<\/span><\/b><span data-contrast=\"auto\">\u00a0&#8211;\u00a0A single origin feature can\u00a0relate to multiple destination features.<\/span><span data-ccp-props=\"{}\">\u00a0<\/span><\/li>\n<li data-leveltext=\"\uf0b7\" data-font=\"Symbol\" data-listid=\"13\" data-list-defn-props=\"{&quot;335552541&quot;:1,&quot;335559685&quot;:720,&quot;335559991&quot;:360,&quot;469769226&quot;:&quot;Symbol&quot;,&quot;469769242&quot;:[8226],&quot;469777803&quot;:&quot;left&quot;,&quot;469777804&quot;:&quot;\uf0b7&quot;,&quot;469777815&quot;:&quot;hybridMultilevel&quot;}\" data-aria-posinset=\"1\" data-aria-level=\"1\"><b><span data-contrast=\"auto\">Many-to-Many (M:N)<\/span><\/b><span data-contrast=\"auto\"> &#8211; Features in each dataset can relate to multiple features in the other. To support this type of relationship, the geodatabase automatically creates an intermediate table that stores the keys linking each pair of related records. <\/span><span data-ccp-props=\"{}\">\u00a0<\/span><\/li>\n<\/ul>\n<p><b><span data-contrast=\"auto\">Note:<\/span><\/b><span data-contrast=\"auto\">\u00a0In ArcGIS Online, managing a many<\/span><span data-contrast=\"auto\">\u2011<\/span><span data-contrast=\"auto\">to<\/span><span data-contrast=\"auto\">\u2011<\/span><span data-contrast=\"auto\">many relationship class currently requires manually adding records to the relationship class table and entering the appropriate keys to create each relationship. If the relationship class is composite, it will not cascade the deletion to related features in the destination table.<\/span><b><span data-contrast=\"auto\">\u00a0<\/span><\/b><span data-ccp-props=\"{&quot;335559685&quot;:720}\">\u00a0<\/span><\/p>\n<h3><b><span data-contrast=\"auto\">Additional Resources<\/span><\/b><span data-ccp-props=\"{}\">\u00a0<\/span><\/h3>\n<p><span data-contrast=\"auto\">For more\u00a0information on the fundamentals of relationship classes\u00a0and\u00a0how to create them\u00a0in ArcGIS Pro\u00a0see:\u00a0<\/span><span data-ccp-props=\"{}\">\u00a0<\/span><\/p>\n<ul>\n<li data-leveltext=\"\uf0b7\" data-font=\"Symbol\" data-listid=\"8\" data-list-defn-props=\"{&quot;335552541&quot;:1,&quot;335559685&quot;:720,&quot;335559991&quot;:360,&quot;469769226&quot;:&quot;Symbol&quot;,&quot;469769242&quot;:[8226],&quot;469777803&quot;:&quot;left&quot;,&quot;469777804&quot;:&quot;\uf0b7&quot;,&quot;469777815&quot;:&quot;hybridMultilevel&quot;}\" data-aria-posinset=\"1\" data-aria-level=\"1\"><a href=\"https:\/\/pro.arcgis.com\/en\/pro-app\/latest\/help\/data\/relationships\/geodatabase-relationship-class-fundamentals.htm\" target=\"_blank\" rel=\"noopener\"><span data-contrast=\"none\">Geodatabase relationship class fundamentals<\/span><\/a><span data-ccp-props=\"{}\">\u00a0<\/span><\/li>\n<li data-leveltext=\"\uf0b7\" data-font=\"Symbol\" data-listid=\"8\" data-list-defn-props=\"{&quot;335552541&quot;:1,&quot;335559685&quot;:720,&quot;335559991&quot;:360,&quot;469769226&quot;:&quot;Symbol&quot;,&quot;469769242&quot;:[8226],&quot;469777803&quot;:&quot;left&quot;,&quot;469777804&quot;:&quot;\uf0b7&quot;,&quot;469777815&quot;:&quot;hybridMultilevel&quot;}\" data-aria-posinset=\"1\" data-aria-level=\"1\"><a href=\"https:\/\/pro.arcgis.com\/en\/pro-app\/latest\/help\/data\/relationships\/prepare-to-create-a-relationship-class.htm\" target=\"_blank\" rel=\"noopener\"><span data-contrast=\"none\">Prepare to create a relationship class<\/span><\/a><span data-ccp-props=\"{}\">\u00a0<\/span><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h2><b><span data-contrast=\"auto\">Publishing Your Data with Relationship Classes<\/span><\/b><span data-ccp-props=\"{}\">\u00a0<\/span><\/h2>\n<p><span data-contrast=\"auto\">Currently, the only way to use relationship classes in ArcGIS Online is to create them within a geodatabase and then publish the participating datasets as a hosted feature layer.\u00a0<\/span><span data-contrast=\"auto\">Publishing data with relationship classes preserves the connections between your tables and feature layers, ensuring that your related records behave as expected in web maps, apps, and\u00a0analysis\u00a0workflows.<\/span><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;201341983&quot;:0,&quot;335551550&quot;:0,&quot;335551620&quot;:0,&quot;335559738&quot;:0,&quot;335559739&quot;:0,&quot;335559740&quot;:300}\">\u00a0<\/span><\/p>\n<p><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;201341983&quot;:0,&quot;335551550&quot;:0,&quot;335551620&quot;:0,&quot;335559738&quot;:0,&quot;335559739&quot;:0,&quot;335559740&quot;:300}\">\u00a0<\/span><span data-contrast=\"auto\">To publish, use\u00a0the\u00a0<\/span><a href=\"https:\/\/pro.arcgis.com\/en\/pro-app\/latest\/help\/sharing\/overview\/web-feature-layer.htm\"><span data-contrast=\"none\">Publish Web Layer<\/span><\/a><span data-contrast=\"auto\">\u00a0or\u00a0<\/span><a href=\"https:\/\/pro.arcgis.com\/en\/pro-app\/latest\/help\/sharing\/overview\/share-a-web-map.htm\"><span data-contrast=\"none\">Publish Web Map<\/span><\/a><span data-contrast=\"auto\">\u00a0option on the Share tab in ArcGIS Pro. Analyze your map, resolve any errors, and then publish your data.<\/span><span data-ccp-props=\"{}\">\u00a0<\/span><\/p>\n<h3><b><span data-contrast=\"auto\">Requirements\u00a0To\u00a0Publish\u00a0a\u00a0Hosted\u00a0Feature\u00a0Layer\u00a0with\u00a0Relationship\u00a0Classes<\/span><\/b><span data-ccp-props=\"{}\">\u00a0<\/span><\/h3>\n<ul>\n<li data-leveltext=\"\uf0b7\" data-font=\"Symbol\" data-listid=\"7\" data-list-defn-props=\"{&quot;335552541&quot;:1,&quot;335559685&quot;:720,&quot;335559991&quot;:360,&quot;469769226&quot;:&quot;Symbol&quot;,&quot;469769242&quot;:[8226],&quot;469777803&quot;:&quot;left&quot;,&quot;469777804&quot;:&quot;\uf0b7&quot;,&quot;469777815&quot;:&quot;hybridMultilevel&quot;}\" data-aria-posinset=\"2\" data-aria-level=\"1\"><b><span data-contrast=\"auto\">Include all related datasets\u00a0&#8211;\u00a0<\/span><\/b><span data-contrast=\"auto\">both the origin and destination\u00a0tables\u00a0or feature classes must be added to the map before publishing.\u00a0<\/span><span data-ccp-props=\"{&quot;134233118&quot;:false,&quot;335559739&quot;:0}\">\u00a0<\/span><\/li>\n<li data-leveltext=\"\uf0b7\" data-font=\"Symbol\" data-listid=\"7\" data-list-defn-props=\"{&quot;335552541&quot;:1,&quot;335559685&quot;:720,&quot;335559991&quot;:360,&quot;469769226&quot;:&quot;Symbol&quot;,&quot;469769242&quot;:[8226],&quot;469777803&quot;:&quot;left&quot;,&quot;469777804&quot;:&quot;\uf0b7&quot;,&quot;469777815&quot;:&quot;hybridMultilevel&quot;}\" data-aria-posinset=\"2\" data-aria-level=\"1\"><b><span data-contrast=\"auto\">Include the relationship table\u00a0&#8211;\u00a0<\/span><\/b><span data-contrast=\"auto\">if you are using a Many-to-Many or an attributed (1:1, 1:M) relationship class, the relationship table must be added to the map before publishing.<\/span><span data-ccp-props=\"{&quot;134233118&quot;:false,&quot;335559739&quot;:0}\">\u00a0<\/span><\/li>\n<li data-leveltext=\"\uf0b7\" data-font=\"Symbol\" data-listid=\"7\" data-list-defn-props=\"{&quot;335552541&quot;:1,&quot;335559685&quot;:720,&quot;335559991&quot;:360,&quot;469769226&quot;:&quot;Symbol&quot;,&quot;469769242&quot;:[8226],&quot;469777803&quot;:&quot;left&quot;,&quot;469777804&quot;:&quot;\uf0b7&quot;,&quot;469777815&quot;:&quot;hybridMultilevel&quot;}\" data-aria-posinset=\"2\" data-aria-level=\"1\"><b><span data-contrast=\"auto\">Additional considerations &#8211; <\/span><\/b><span data-ccp-props=\"{}\">\u00a0<\/span>Add a GlobalID field to each dataset if you&#8217;re taking data offline and enable editor tracking on all participating datasets to track all edits.<\/li>\n<\/ul>\n<h2><b><span data-contrast=\"auto\">Working with Relationship Classes in ArcGIS Online<\/span><\/b><span data-ccp-props=\"{}\">\u00a0<\/span><\/h2>\n<p><span data-contrast=\"auto\">Now that\u00a0your data is published\u00a0in\u00a0ArcGIS Online,\u00a0let\u2019s\u00a0explore how to work with your relationship classes to improve your workflow.<\/span><span data-ccp-props=\"{}\">\u00a0<\/span><\/p>\n<h4><b><span data-contrast=\"auto\">Navigating Related Records in\u00a0the Attribute Table<\/span><\/b><span data-ccp-props=\"{}\">\u00a0<\/span><\/h4>\n<p><span data-contrast=\"auto\">Attribute tables in ArcGIS Online allow you to quickly see the number of related records and navigate through multiple levels of a relationship tree. To learn more: <\/span><a href=\"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-online\/mapping\/introducing-related-records-to-the-table\" target=\"_blank\" rel=\"noopener\"><span data-contrast=\"none\">Introducing Related Records to the Table<\/span><\/a><span data-contrast=\"auto\">\u00a0<\/span><span data-ccp-props=\"{&quot;335559685&quot;:720}\">\u00a0<\/span><\/p>\n<h4><b><span data-contrast=\"auto\">Setting up the Pop-ups to View Related Records<\/span><\/b><span data-ccp-props=\"{}\">\u00a0<\/span><\/h4>\n<p><span data-contrast=\"auto\">Pop-ups are the primary way you can explore and understand relationships between features. The option to view related records is not automatically enabled in the default pop-up settings. To learn more: <\/span><a href=\"https:\/\/rolling%20out%20related%20records%20in%20map%20viewer\/\" target=\"_blank\" rel=\"noopener\"><span data-contrast=\"none\">Rolling Out Related Records in Map Viewer<\/span><\/a><span data-ccp-props=\"{&quot;335559685&quot;:720}\">\u00a0<\/span><\/p>\n<h4><b><span data-contrast=\"auto\">Configure\u00a0Editing\u00a0Forms\u00a0and\u00a0Editing\u00a0Related\u00a0Records<\/span><\/b><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335559738&quot;:240,&quot;335559739&quot;:240}\">\u00a0<\/span><\/h4>\n<p><span data-contrast=\"auto\">Related features can be added, edited, and deleted through the editing form for the related dataset, making it easy to manage related records. When a new related feature is created through the edit form, the destination key is automatically populated to establish the relationship. Like pop-ups, the option to view and edit related records is not enabled by default when a feature layer is added to a map. To learn more: <\/span><a href=\"https:\/\/doc.arcgis.com\/en\/arcgis-online\/create-maps\/create-form-mv.htm#ESRI_SECTION1_C30D73392D964D51A8B606128A8A6E8F\" target=\"_blank\" rel=\"noopener\"><span data-contrast=\"none\">Configure Forms for Attribute Editing<\/span><\/a><span data-ccp-props=\"{&quot;335559685&quot;:720}\">\u00a0<\/span><\/p>\n<p><span data-contrast=\"auto\">Once the editing form has been enabled to support editing related records, it provides an intuitive way for you to navigate and edit related features. When you add, update, or delete related features, the system automatically maintains the relationship by populating the appropriate keys behind the scenes. To learn more: \u00a0<\/span><a href=\"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-online\/mapping\/introducing-related-record-editing-in-map-viewer\" target=\"_blank\" rel=\"noopener\"><span data-contrast=\"none\">Introducing Related Record Editing in Map Viewer<\/span><\/a><span data-ccp-props=\"{&quot;335559685&quot;:720}\">\u00a0<\/span><\/p>\n<p><span data-ccp-props=\"{&quot;335559685&quot;:720}\">\u00a0<\/span><\/p>\n<h2><b><span data-contrast=\"auto\">Reviewing Relationship Class Parameters in ArcGIS Online<\/span><\/b><span data-ccp-props=\"{}\">\u00a0<\/span><\/h2>\n<p><span data-contrast=\"auto\">ArcGIS Online does not\u00a0expose the properties of relationship classes\u00a0in hosted feature layers. To view the\u00a0relationship class parameters,\u00a0you\u00a0must use the\u00a0REST endpoint\u00a0or\u00a0bring the layer into ArcGIS Pro and\u00a0review\u00a0the layer properties.<\/span><span data-ccp-props=\"{}\">\u00a0<\/span><\/p>\n<h3><b><span data-contrast=\"auto\">REST endpoint\u00a0<\/span><\/b><span data-ccp-props=\"{}\">\u00a0<\/span><\/h3>\n<ol>\n<li><span data-contrast=\"auto\">Go to the\u00a0layer\u2019s\u00a0item page in ArcGIS Online.<\/span><span data-ccp-props=\"{}\">\u00a0<\/span><\/li>\n<li><span data-contrast=\"auto\">Click the Overview tab.<\/span><span data-ccp-props=\"{}\">\u00a0<\/span><\/li>\n<li><span data-contrast=\"auto\">On the right side of the page, under\u00a0Details\u00a0locate\u00a0the URL.<\/span><span data-ccp-props=\"{}\">\u00a0<\/span><\/li>\n<li><span data-contrast=\"auto\">On the right side of the\u00a0URL\u00a0click on the View icon.<\/span><span data-ccp-props=\"{}\">\u00a0<\/span><\/li>\n<li><span data-contrast=\"auto\">This opens the layer\u2019s REST endpoint.\u00a0<\/span><span data-ccp-props=\"{}\">\u00a0<\/span><\/li>\n<li><span data-contrast=\"auto\">Click on one of the layers\u00a0that\u00a0participates\u00a0in the relationship class. At the bottom of the\u00a0page,\u00a0you will see\u00a0all\u00a0the related datasets.\u00a0<\/span><span data-ccp-props=\"{}\">\u00a0<\/span><\/li>\n<li><span data-contrast=\"auto\">If you\u00a0want to see\u00a0the parameters\u00a0on\u00a0the relationship class, click on the\u00a0<strong>json<\/strong>\u00a0link and\u00a0search for relationships to\u00a0find the details.<\/span><span data-ccp-props=\"{}\">\u00a0<\/span><\/li>\n<\/ol>\n"},{"acf_fc_layout":"image","image":{"ID":2961215,"id":2961215,"title":"REST RC 2","filename":"REST-RC-2.gif","filesize":19717890,"url":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2026\/03\/REST-RC-2.gif","link":"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-online\/data-management\/understanding-relationship-classes-in-arcgis-online-hosted-feature-services\/rest-rc-2","alt":"Reviewing relationship class properties in the REST endpoint.","author":"437412","description":"","caption":"","name":"rest-rc-2","status":"inherit","uploaded_to":2960842,"date":"2026-03-23 21:14:05","modified":"2026-03-23 21:14:45","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":1280,"height":720,"sizes":{"thumbnail":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2026\/03\/REST-RC-2-213x200.gif","thumbnail-width":213,"thumbnail-height":200,"medium":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2026\/03\/REST-RC-2.gif","medium-width":464,"medium-height":261,"medium_large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2026\/03\/REST-RC-2.gif","medium_large-width":768,"medium_large-height":432,"large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2026\/03\/REST-RC-2.gif","large-width":1280,"large-height":720,"1536x1536":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2026\/03\/REST-RC-2.gif","1536x1536-width":1280,"1536x1536-height":720,"2048x2048":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2026\/03\/REST-RC-2.gif","2048x2048-width":1280,"2048x2048-height":720,"card_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2026\/03\/REST-RC-2-826x465.gif","card_image-width":826,"card_image-height":465,"wide_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2026\/03\/REST-RC-2.gif","wide_image-width":1280,"wide_image-height":720}},"image_position":"center","orientation":"horizontal","hyperlink":""},{"acf_fc_layout":"content","content":"<h3><b><span data-contrast=\"auto\">ArcGIS Pro<\/span><\/b><span data-contrast=\"auto\">\u00a0<\/span><span data-ccp-props=\"{}\">\u00a0<\/span><\/h3>\n<ol>\n<li><span data-contrast=\"auto\">Open a map in ArcGIS Pro. <\/span><span data-ccp-props=\"{}\">\u00a0<\/span><\/li>\n<li><span data-contrast=\"auto\">Connect to your instance of ArcGIS Online.<\/span><span data-ccp-props=\"{}\">\u00a0<\/span><\/li>\n<li><span data-contrast=\"auto\">Add\u00a0the\u00a0hosted feature layer\u00a0to the map\u00a0through the portal connection or using the feature layer\u2019s URL (Add Data &gt; From Path).\u00a0<\/span><span data-ccp-props=\"{}\">\u00a0<\/span><\/li>\n<li><span data-contrast=\"auto\">In the Content pane, right-click\u00a0on one of the datasets that is\u00a0participating\u00a0in the relationship class.<\/span><span data-ccp-props=\"{}\">\u00a0<\/span><\/li>\n<li><span data-contrast=\"auto\">Select Properties.<\/span><span data-ccp-props=\"{}\">\u00a0<\/span><\/li>\n<li><span data-contrast=\"auto\">Go to the\u00a0Relates\u00a0tab\u00a0and\u00a0there will be a summary of\u00a0the details of the\u00a0class relationship\u00a0parameters.<\/span><span data-ccp-props=\"{}\">\u00a0<\/span><\/li>\n<\/ol>\n"},{"acf_fc_layout":"image","image":{"ID":2960887,"id":2960887,"title":"ArcProRC_Properties","filename":"ArcProRC_Properties.png","filesize":94253,"url":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2026\/03\/ArcProRC_Properties.png","link":"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-online\/data-management\/understanding-relationship-classes-in-arcgis-online-hosted-feature-services\/arcprorc_properties","alt":"Screenshot of the Properties tab in ArcGIS Pro on the Relates section, displaying the relationship class properties.","author":"437412","description":"Relationship Class Properties in ArcGIS Pro","caption":"","name":"arcprorc_properties","status":"inherit","uploaded_to":2960842,"date":"2026-03-19 23:16:37","modified":"2026-03-23 19:33:47","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":1098,"height":655,"sizes":{"thumbnail":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2026\/03\/ArcProRC_Properties-213x200.png","thumbnail-width":213,"thumbnail-height":200,"medium":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2026\/03\/ArcProRC_Properties.png","medium-width":438,"medium-height":261,"medium_large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2026\/03\/ArcProRC_Properties.png","medium_large-width":768,"medium_large-height":458,"large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2026\/03\/ArcProRC_Properties.png","large-width":1098,"large-height":655,"1536x1536":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2026\/03\/ArcProRC_Properties.png","1536x1536-width":1098,"1536x1536-height":655,"2048x2048":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2026\/03\/ArcProRC_Properties.png","2048x2048-width":1098,"2048x2048-height":655,"card_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2026\/03\/ArcProRC_Properties-779x465.png","card_image-width":779,"card_image-height":465,"wide_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2026\/03\/ArcProRC_Properties.png","wide_image-width":1098,"wide_image-height":655}},"image_position":"center","orientation":"horizontal","hyperlink":""},{"acf_fc_layout":"content","content":"<h2><b><span data-contrast=\"auto\">Limitations in ArcGIS Online<\/span><\/b><span data-ccp-props=\"{}\">\u00a0<\/span><\/h2>\n<p><span data-contrast=\"auto\">Not all relationship class capabilities available in the geodatabase are supported once the data is published as a hosted feature layer in ArcGIS Online.\u00a0It\u2019s\u00a0important to understand these differences as you design and plan your workflows.<\/span><span data-ccp-props=\"{}\">\u00a0<\/span><\/p>\n<ul>\n<li><b><span data-contrast=\"auto\">Split Policies &#8211; <\/span><\/b>\u00a0<span data-contrast=\"auto\">In a geodatabase, you can apply a split policy on the origin feature class to control how related records behave when an origin feature is split, including the\u00a0option\u00a0to duplicate related features. This behavior is not supported once the data is published to ArcGIS Online.<\/span><span data-ccp-props=\"{}\">\u00a0<\/span><\/li>\n<li><b><span data-contrast=\"auto\">Relationship Class Rules &#8211; <\/span><\/b>\u00a0<span data-contrast=\"auto\">Minimum and\u00a0maximum\u00a0cardinality rules,\u00a0which restrict how many features can be related\u00a0are not enforced in ArcGIS Online. These rules function only within a geodatabase environment.<\/span><span data-ccp-props=\"{}\">\u00a0<\/span><\/li>\n<li><b><span data-contrast=\"auto\">Many-to-Many Relationship Classes &#8211; <\/span><\/b>\u00a0<span data-contrast=\"auto\">Many-to-many relationships can be published, and ArcGIS Online supports\u00a0navigating\u00a0related features. However, the editing experience is limited: the editing form does not support adding or updating related records directly. To edit related records in ArcGIS Online, you must manually add entries to the relationship class table and populate the\u00a0appropriate foreign\u00a0keys.<\/span><span data-ccp-props=\"{}\">\u00a0<\/span><\/li>\n<\/ul>\n<h2><b><span data-contrast=\"auto\">Best Practices<\/span><\/b><span data-ccp-props=\"{}\">\u00a0<\/span><\/h2>\n<ul>\n<li><b><span data-contrast=\"auto\">Enable related records in pop-ups<\/span><\/b><span data-contrast=\"auto\"> so you can easily view and navigate between related features. <\/span><span data-ccp-props=\"{}\">\u00a0<\/span><\/li>\n<li><b><span data-contrast=\"auto\">Add related records to the editing form<\/span><\/b><span data-contrast=\"auto\">\u00a0to allow editors to create, update, and manage related features directly\u00a0in\u00a0the web map.\u00a0<\/span><span data-ccp-props=\"{}\">\u00a0<\/span><\/li>\n<li><b><span data-contrast=\"auto\">Use the attribute table<\/span><\/b><span data-contrast=\"auto\">\u00a0to navigate and review related records.<\/span><span data-ccp-props=\"{}\">\u00a0<\/span><\/li>\n<li><b><span data-contrast=\"auto\">Use a\u00a0GlobalID\u00a0as the primary key<\/span><\/b><span data-contrast=\"auto\">\u00a0to ensure each origin feature has a stable, unique identifier. When using\u00a0GlobalIDs, make sure the related table includes a\u00a0GUID\u00a0field as the foreign key.\u00a0<\/span><span data-ccp-props=\"{}\">\u00a0<\/span><\/li>\n<li><b><span data-contrast=\"auto\">If using\u00a0a\u00a0user-managed ID\u00a0field\u00a0as\u00a0the\u00a0primary key<\/span><\/b><span data-contrast=\"auto\">,\u00a0enforce\u00a0uniqueness by creating a field index\u00a0with a unique value requirement\u00a0to ensure primary key values are not duplicated.<\/span><span data-ccp-props=\"{}\"> To learn more: <a href=\"https:\/\/doc.arcgis.com\/en\/arcgis-online\/manage-data\/add-unique-constraint.htm\" target=\"_blank\" rel=\"noopener\">Add a Unique Constraint to a Field<\/a><\/span><\/li>\n<li><b><span data-contrast=\"auto\">Do not use the\u00a0ObjectID\u00a0as the\u00a0primary key.\u00a0<\/span><\/b><span data-contrast=\"auto\">ObjectIDs\u00a0are unique within the table,\u00a0but can change during data loading, append, or republishing operations.<\/span><span data-ccp-props=\"{}\">\u00a0<\/span><\/li>\n<li><strong>For editable data hide the foreign key field in the pop up and editor form<\/strong>\u00a0to prevent editors from viewing or modifying these values, which can accidentally break relationships.<\/li>\n<li><strong>Do not use hosted feature layer views<\/strong> to hide primary or foreign keys, views will block the ability to create related records. Instead, ensure these fields remain hidden directly in the pop up and editing form so the system can manage them automatically when related records are created.<\/li>\n<\/ul>\n"}],"related_articles":"","show_article_image":false,"card_image":false,"wide_image":false},"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>A Complete Guide to Relationship Classes in ArcGIS Online<\/title>\n<meta name=\"description\" content=\"Learn how relationship classes enhance hosted feature layers in ArcGIS Online by maintaining connected records, improving data models, and enabling smarter editing and mapping workflows in ArcGIS Online.\" \/>\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-online\/data-management\/understanding-relationship-classes-in-arcgis-online-hosted-feature-services\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Understanding Relationship Classes in ArcGIS Online Hosted Feature Services\" \/>\n<meta property=\"og:description\" content=\"Learn how relationship classes enhance hosted feature layers in ArcGIS Online by maintaining connected records, improving data models, and enabling smarter editing and mapping workflows in ArcGIS Online.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-online\/data-management\/understanding-relationship-classes-in-arcgis-online-hosted-feature-services\" \/>\n<meta property=\"og:site_name\" content=\"ArcGIS Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/esrigis\/\" \/>\n<meta property=\"article:modified_time\" content=\"2026-03-25T16:36:39+00:00\" \/>\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=\"9 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-online\/data-management\/understanding-relationship-classes-in-arcgis-online-hosted-feature-services#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-online\/data-management\/understanding-relationship-classes-in-arcgis-online-hosted-feature-services\"},\"author\":{\"name\":\"Jessica Parteno\",\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/#\/schema\/person\/34f8430347878987129803f1db9c9ff5\"},\"headline\":\"Understanding Relationship Classes in ArcGIS Online Hosted Feature Services\",\"datePublished\":\"2026-03-24T18:33:44+00:00\",\"dateModified\":\"2026-03-25T16:36:39+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-online\/data-management\/understanding-relationship-classes-in-arcgis-online-hosted-feature-services\"},\"wordCount\":9,\"commentCount\":3,\"publisher\":{\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/#organization\"},\"keywords\":[\"ArcGIS Online\",\"hosted feature services\",\"related records\",\"relationship class\"],\"articleSection\":[\"Data Management\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-online\/data-management\/understanding-relationship-classes-in-arcgis-online-hosted-feature-services#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-online\/data-management\/understanding-relationship-classes-in-arcgis-online-hosted-feature-services\",\"url\":\"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-online\/data-management\/understanding-relationship-classes-in-arcgis-online-hosted-feature-services\",\"name\":\"A Complete Guide to Relationship Classes in ArcGIS Online\",\"isPartOf\":{\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/#website\"},\"datePublished\":\"2026-03-24T18:33:44+00:00\",\"dateModified\":\"2026-03-25T16:36:39+00:00\",\"description\":\"Learn how relationship classes enhance hosted feature layers in ArcGIS Online by maintaining connected records, improving data models, and enabling smarter editing and mapping workflows in ArcGIS Online.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-online\/data-management\/understanding-relationship-classes-in-arcgis-online-hosted-feature-services#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-online\/data-management\/understanding-relationship-classes-in-arcgis-online-hosted-feature-services\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-online\/data-management\/understanding-relationship-classes-in-arcgis-online-hosted-feature-services#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.esri.com\/arcgis-blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Understanding Relationship Classes in ArcGIS Online Hosted Feature Services\"}]},{\"@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\/34f8430347878987129803f1db9c9ff5\",\"name\":\"Jessica Parteno\",\"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\/2026\/03\/Jessie-Parteno05-small-square-213x200.jpg\",\"contentUrl\":\"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2026\/03\/Jessie-Parteno05-small-square-213x200.jpg\",\"caption\":\"Jessica Parteno\"},\"description\":\"Jessica is a Product Engineer on the ArcGIS Online team based out of San Jose, California. She is passionate about building intuitive tools that strengthen data management and elevate mapping experiences.\",\"url\":\"https:\/\/www.esri.com\/arcgis-blog\/author\/jpartenoesri-com_esriinc\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"A Complete Guide to Relationship Classes in ArcGIS Online","description":"Learn how relationship classes enhance hosted feature layers in ArcGIS Online by maintaining connected records, improving data models, and enabling smarter editing and mapping workflows in ArcGIS Online.","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-online\/data-management\/understanding-relationship-classes-in-arcgis-online-hosted-feature-services","og_locale":"en_US","og_type":"article","og_title":"Understanding Relationship Classes in ArcGIS Online Hosted Feature Services","og_description":"Learn how relationship classes enhance hosted feature layers in ArcGIS Online by maintaining connected records, improving data models, and enabling smarter editing and mapping workflows in ArcGIS Online.","og_url":"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-online\/data-management\/understanding-relationship-classes-in-arcgis-online-hosted-feature-services","og_site_name":"ArcGIS Blog","article_publisher":"https:\/\/www.facebook.com\/esrigis\/","article_modified_time":"2026-03-25T16:36:39+00:00","twitter_card":"summary_large_image","twitter_site":"@ESRI","twitter_misc":{"Est. reading time":"9 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":["Article","BlogPosting"],"@id":"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-online\/data-management\/understanding-relationship-classes-in-arcgis-online-hosted-feature-services#article","isPartOf":{"@id":"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-online\/data-management\/understanding-relationship-classes-in-arcgis-online-hosted-feature-services"},"author":{"name":"Jessica Parteno","@id":"https:\/\/www.esri.com\/arcgis-blog\/#\/schema\/person\/34f8430347878987129803f1db9c9ff5"},"headline":"Understanding Relationship Classes in ArcGIS Online Hosted Feature Services","datePublished":"2026-03-24T18:33:44+00:00","dateModified":"2026-03-25T16:36:39+00:00","mainEntityOfPage":{"@id":"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-online\/data-management\/understanding-relationship-classes-in-arcgis-online-hosted-feature-services"},"wordCount":9,"commentCount":3,"publisher":{"@id":"https:\/\/www.esri.com\/arcgis-blog\/#organization"},"keywords":["ArcGIS Online","hosted feature services","related records","relationship class"],"articleSection":["Data Management"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-online\/data-management\/understanding-relationship-classes-in-arcgis-online-hosted-feature-services#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-online\/data-management\/understanding-relationship-classes-in-arcgis-online-hosted-feature-services","url":"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-online\/data-management\/understanding-relationship-classes-in-arcgis-online-hosted-feature-services","name":"A Complete Guide to Relationship Classes in ArcGIS Online","isPartOf":{"@id":"https:\/\/www.esri.com\/arcgis-blog\/#website"},"datePublished":"2026-03-24T18:33:44+00:00","dateModified":"2026-03-25T16:36:39+00:00","description":"Learn how relationship classes enhance hosted feature layers in ArcGIS Online by maintaining connected records, improving data models, and enabling smarter editing and mapping workflows in ArcGIS Online.","breadcrumb":{"@id":"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-online\/data-management\/understanding-relationship-classes-in-arcgis-online-hosted-feature-services#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-online\/data-management\/understanding-relationship-classes-in-arcgis-online-hosted-feature-services"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-online\/data-management\/understanding-relationship-classes-in-arcgis-online-hosted-feature-services#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.esri.com\/arcgis-blog\/"},{"@type":"ListItem","position":2,"name":"Understanding Relationship Classes in ArcGIS Online Hosted Feature Services"}]},{"@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\/34f8430347878987129803f1db9c9ff5","name":"Jessica Parteno","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\/2026\/03\/Jessie-Parteno05-small-square-213x200.jpg","contentUrl":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2026\/03\/Jessie-Parteno05-small-square-213x200.jpg","caption":"Jessica Parteno"},"description":"Jessica is a Product Engineer on the ArcGIS Online team based out of San Jose, California. She is passionate about building intuitive tools that strengthen data management and elevate mapping experiences.","url":"https:\/\/www.esri.com\/arcgis-blog\/author\/jpartenoesri-com_esriinc"}]}},"text_date":"March 24, 2026","author_name":"Jessica Parteno","author_page":"https:\/\/www.esri.com\/arcgis-blog\/author\/jpartenoesri-com_esriinc","custom_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/08\/Newsroom-Keyart-Wide-1920-x-1080.jpg","primary_product":"ArcGIS Online","tag_data":[{"term_id":42641,"name":"ArcGIS Online","slug":"arcgis-online","term_group":0,"term_taxonomy_id":42641,"taxonomy":"post_tag","description":"","parent":0,"count":420,"filter":"raw"},{"term_id":24521,"name":"hosted feature services","slug":"hosted-feature-services","term_group":0,"term_taxonomy_id":24521,"taxonomy":"post_tag","description":"","parent":0,"count":11,"filter":"raw"},{"term_id":767662,"name":"related records","slug":"related-records","term_group":0,"term_taxonomy_id":767662,"taxonomy":"post_tag","description":"","parent":0,"count":6,"filter":"raw"},{"term_id":765022,"name":"relationship class","slug":"relationship-class","term_group":0,"term_taxonomy_id":765022,"taxonomy":"post_tag","description":"","parent":0,"count":2,"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":919,"filter":"raw"}],"product_data":[{"term_id":36551,"name":"ArcGIS Online","slug":"arcgis-online","term_group":0,"term_taxonomy_id":36551,"taxonomy":"product","description":"","parent":0,"count":2425,"filter":"raw"}],"primary_product_link":"https:\/\/www.esri.com\/arcgis-blog\/?s=#&products=arcgis-online","_links":{"self":[{"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/blog\/2960842","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\/437412"}],"replies":[{"embeddable":true,"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/comments?post=2960842"}],"version-history":[{"count":0,"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/blog\/2960842\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/media?parent=2960842"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/categories?post=2960842"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/tags?post=2960842"},{"taxonomy":"industry","embeddable":true,"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/industry?post=2960842"},{"taxonomy":"product","embeddable":true,"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/product?post=2960842"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}