How do you work with feature sets with arcade script using the workflow "Run Arcade Script." $map doesn't exist, passing in GetMap1.map doesn't work
I'm curious what is actually possible in the Run Arcade Script activity. I've been attempting to loop over a feature set in the script with no luck.
Questions
What profile is the workflow arcade script using? Is it using popup like the site based Arcade Scripts? Functions like FeatureSetById, Filter, and other are part of the Popup Profile.
Context
Html5 Viewer
Workflow Series5 (5.20.1)
Running the workflow from a site that has the layers in the map.
Get Feature Set Within Arcade Script
First of all $map (which is stated as being global) doesn't exist. Passing in map from the Get Map activity doesn't throw errors when using FeatureSetById inside the script, but using FeatureSetById in the script causes arcadeScript1.result to be empty object even if I return a simple string like: return "hello world"; Instead of that string it returns an empty object {}. In fact, if I have FeatureSetById anywhere in the script there is no error even if I add obvious errors, I can then comment out FeatureSetById and I get the expected error.
Feature Set As a Parameter
I've tried passing in feature sets but it appears the object structure is changed an only a few arcade functions work like IsEmpty or Count. Looping over a passed in feature set throws no errors but each feature doesn't have accessible properties or is only setup handle fields.
Du måste logga in om du vill lämna en kommentar.
Kommentarer
0 kommentarer