Select to view content in your preferred language

How to add records to a related table (many-to-many)

421
1
01-31-2023 07:34 AM
BerendVeldkamp
Frequent Contributor

How can I add records to a many-to-many relationshipclass in ArcGIS Server using the REST interface?

 

For a one-to-many relationship it's easy, as you can just grab the foreign key from the source table, and use that to insert (or update) records in the destination.

However, with many-to-many, we would need to add a record to the junction (or 'intermediate') table. I can't seem to find any information about this.

0 Kudos
1 Reply
BerendVeldkamp
Frequent Contributor

For the curious: When adding the (many to many) relationshipclass to the map, it will actually add the intermediate table. This can be published, so that one can manually add records to that table.

0 Kudos