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

259
1
01-31-2023 07:34 AM
BerendVeldkamp
Occasional Contributor II

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
Occasional Contributor II

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