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",