Is it possible to set up an Arcade expression with the intersect function that references another layer within the same service as the features in which the expression is applied? Or, do you have to add each endpoint within the service individually in order to make the expression work?
For example, I have a service with three layers: address points, food inspector zones, and watershed inspector zones. If I add each of the endpoints individually, the following expression (in the address points) returns the desired value (from the food inspector zone layer):
However, if I add the whole service to my map and set up the same expression on the address points there it does NOT work. I get this error:
Does it simply not work within a service? Or do I have a wrong parameter?
@XanderBakkerThanks for checking further into that. Your example includes an ESRI service example, right? Should I be able to use my own REST services (published with Server) with some tweaks to your expression?
I'm surprised you can't access the services as they're public.
Hi @AdamGebhart ,
You should be able to use the code after you create the item in your portal (this is just a reference to the data). You will have to change the ItemID to the one you create and the field and logic you want to apply after accessing the layer.
I think the reason that I cannot access the website, is since it blocks access from Colombia:
Thanks for your help. I haven't been able to try this yet will get around to eventually.
Regarding the Colombia thing - are you in Colombia? Or is it saying my connection is in Colombia? I'm in the US.