Select to view content in your preferred language

Can I use Arcade to 'append' two feature layers to use as a data source in a Dashboard?

697
3
Jump to solution
09-19-2022 08:28 AM
Labels (1)
tigerwoulds
Frequent Contributor

I'm a complete novice with arcade and would like to know if what I'm envisioning is possible.

I have 2 hosted feature layers with slightly different schemas. What I want is to 'append' these into a single layer/data source that I can use in my dashboard. 

Rather than using the ArcGIS Python API to handle creating a new hosted layer, the append, and field mappings, can I use arcade to create a FeatureSet (?) to use as a data source in my dashboard? 

Layer One Fields: Name_1, Color_1, Type

Layer Two Fields: The_Name, The_Color, Type

Appended Layer: Name, Color, Type

 

1 Solution

Accepted Solutions
ArielLow2146
Frequent Contributor

You could use a data expression in Dashboards to do this. You can find an example here. You're essentially using Arcade to return a feature set of both layers which can then be used in a variety of Dashboard elements.

View solution in original post

3 Replies
ArielLow2146
Frequent Contributor

You could use a data expression in Dashboards to do this. You can find an example here. You're essentially using Arcade to return a feature set of both layers which can then be used in a variety of Dashboard elements.

tigerwoulds
Frequent Contributor

Well, it took me about a day but I figured it out! Thanks so much!

0 Kudos
JohnBachman
New Contributor

Hey Tiger,

If you could share your code that would be great! I am wanting to do the same thing but am having trouble.

0 Kudos