relate Feature
Sets up a relationship between this feature and the provided feature based on the given relationshipInfo if it is not null.
If this relationship is keyed on an Object ID or Global ID, and the origin feature in this call has been created locally, you must first call ServiceFeatureTable.applyEdits() and ArcGISFeature.refresh to obtain the new Object ID and Global ID generated by the service. If this is not done, then the destination feature will end up referring to an outdated ID and will not be considered related.
Since
200.1.0
Parameters
feature
the feature to which this feature should be related
relationship Info
the relationship info to use when relating the two features