AnsweredAssumed Answered

Adding related data using ArcGIS REST API

Question asked by gkaljevic on Nov 28, 2016
Latest reply on Nov 29, 2016 by gkaljevic

I have a relationship between table A (Origin) and Table B (Destination). The relationship is set as follows:

 

Table A has PrimaryKey OBJECTID and Table B has Foreign Key REL_OBJECTID

 

I am able to create related data by using ArcGIS Collector app. However when querying the data I noticed REL_OBJECTID is always set to 0 although the relationship clearly exists. As a result I am not able to add new Table B features via ArcGIS REST API (http://<featurelayer-url>/addFeatures)  that link to Table A.

 

 

 

 

[
    {
      "attributes" : {
        "req_id" : "508389",
        "req_type" : "Graffiti Complaint - Public Property",
        "req_date" : "09\/19\/2009",
        "req_time" : "18:44",
        "address" : "11TH ST and HARRISON ST",
        "x_coord" : "6008925.0",
        "y_coord" : "2108713.8",
        "district" : "6",
        "status" : 1,
     

  "REL_OBJECTID": 1


      },
      "geometry" : {
        "x" : -122.41247978999991,
        "y" : 37.770630098000083
      }
    }
]

 

What am I doing wrong?

 

Thanks

Goran

Outcomes