AnsweredAssumed Answered

Tables and Relationships

Question asked by kenbuja Champion on Oct 12, 2020
Latest reply on Oct 15, 2020 by kenbuja

I have a feature service that contains a feature layer ("Management Regions") and several tables. The layer has a M:M relationship with Table 1 ("Source"), and that table has M:M relationships with the other tables.

When I add the layer as a FeatureLayer, I can see the Source relate using the relationships property. However, if I add the table as a FeatureLayer, its relationships property is null. Is there a way to get the relationships for the table?

 

  const regionLayer = new FeatureLayer({
    url: 'https://services2.arcgis.com/blah/FeatureServer/0',
    outFields: ['*']
  });
  const sourceTable = new FeatureLayer({
    url: 'https://services2.arcgis.com/blah/FeatureServer/1',
    outFields: ['*']
  });

Outcomes