Hi, I'm building a task enabled map with Integration links to add relatedfeatures using forms inside the same map. In this case I have a task enabled feature layer with related tables. One related table has a second-degree relationship that I am trying to add records to with no success.
var url =
"?referenceContext=addRelatedFeature" +
"&itemID=" + mapID +
"&featureSourceURL=" + actionURL +
"&featureID=" + featureID +
"&foreignKeyField=GlobalID";
return url;
I also tried substituting foreignKeyField with relationshipID.
It works fine for first-degree relationships, but not for second degree.
If the actionURL points to the point feature the error says there's no relationship, and if it points to the first degree table it errors out with Unable to Add Related Item.