Storing Arcade Scripts outside of ArcGIS Online

11-02-2021 09:27 AM
Occasional Contributor

Hello all,

I am looking for some ideas and best practices on how to store pre-written arcade expressions. I want to put them onto Github to share with my coworkers and some external partners, but I know Arcade is kind of its own language so it can be hard to work with outside of AGOL. So far, I have been saving them as Javascript files and adding a note that they must be copied/pasted into the Arcade interface. Any other best practices for this?

1 Reply
MVP Esteemed Contributor

Javascript files in GitHub is how we do it, and it works well. You can do a document per expression, but we occasionally do a document per layer, where a single layer might have multiple expressions associated with it.

I'd love it if the Arcade language had a VS Code extension for handling its particular differences from javascript, but for most expressions, using the javascript type is just fine.

- Josh Carlson
Kendall County GIS