Automating Workflow (Arcade)

258
2
Jump to solution
09-02-2021 01:12 PM
Labels (1)
AlfredBaldenweck
Occasional Contributor III

I'm looking at automating my workflow, the last step of which includes using an arcade expression to calculate a field. Basically Python's doing all the heavy lifting beforehand, and Arcade is being used to make the end result pretty.

Is it possible to automate an arcade expression like you would a python script?

If not, is there an easy way to run it, wrapped in a python script, from within the Model Builder?

Or do I have to rewrite it in Python?

Thanks!

0 Kudos
1 Solution

Accepted Solutions
JohannesLindner
MVP Regular Contributor

Is it possible to automate an arcade expression like you would a python script?

Depends. You can't execute an Arcade expression in certain intervals like you could with a Python script. But you can write Attribute Rules that automatically calculate your field.

 

If not, is there an easy way to run it, wrapped in a python script, from within the Model Builder?

You can use your Arcade expression in the Calculate Field tool.

 

Arcade is being used to make the end result pretty

If all you want to do with Arcade is to prettify things, you could also do that in the Popup.


Have a great day!
Johannes

View solution in original post

0 Kudos
2 Replies
JohannesLindner
MVP Regular Contributor

Is it possible to automate an arcade expression like you would a python script?

Depends. You can't execute an Arcade expression in certain intervals like you could with a Python script. But you can write Attribute Rules that automatically calculate your field.

 

If not, is there an easy way to run it, wrapped in a python script, from within the Model Builder?

You can use your Arcade expression in the Calculate Field tool.

 

Arcade is being used to make the end result pretty

If all you want to do with Arcade is to prettify things, you could also do that in the Popup.


Have a great day!
Johannes
0 Kudos
AlfredBaldenweck
Occasional Contributor III

I'm actually using it to calculate the field because using the same expression in hosted layer's popu makes the pop-up take 30 seconds-1 minute to load per feature, vs 30 seconds to calculate the field across the entire dataset all at once and have the information there permanently until the next update.

 

It looks like Calculate Field is going to be the perfect tool for this. I didn't realize it was able to be used in Model Builder.

Thanks!

0 Kudos