I'm just starting to play around with Arcade and am trying to do something for which I've found plenty of documentation... configure a point layer's pop-up to display data from a related table. I'm having little luck and wanted to confirm whether it's because my data is served as a map service through REST endpoint. There's actually a relationship class built into it but it doesn't seem to matter.
I have a map in our enterprise Portal that has various feature layers and a related table that shares an ID field. I'm trying to configure the popup of one of my point layers to pull data from a few fields of the related table but can't get it to click. Configuring the popup for the related table shows all the various globals like $map, $datastore, etc but the point layer (where I assume I'd want to put the arcade expression) only has $feature globals tied to the field names.
So, my basic question is...can you do this with features/layers from a map service?